Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
wlroots-based Wayland compositor with virtual outputs and physical cursor continuity.
Originally forked from dwl.

`LOC: 7441 total, 2878 vwl.c`
`LOC: 7442 total, 2878 vwl.c`

## Features

Expand Down
1 change: 1 addition & 0 deletions config.def.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
(hex & 0xFF) / 255.0f }
/* appearance */
static const int sloppyfocus = 1; /* focus follows mouse */
static const int enable_cursor_warp_to_vout = 1; /* warp cursor to the center of the target vout */
static const int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */
static const int fullscreen_idle_inhibit = 1; /* 1 inhibits idle whenever a visible client is fullscreen */
static const int passthrough_on_pointer_lock = 0; /* 1 passes keybindings to client when pointer is locked (eg QEMU grab) */
Expand Down
4 changes: 2 additions & 2 deletions vwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,10 +1168,10 @@ cursorwarptovout(VirtualOutput *vout)
struct wlr_box area;
double cx, cy;

if (!cursor || !vout || !vout->mon)
if (!enable_cursor_warp_to_vout || !cursor || !vout || !vout->mon)
return;
area = !wlr_box_empty(&vout->layout_geom) ? vout->layout_geom : vout->mon->window_area;
if (area.width <= 0 || area.height <= 0)
if (wlr_box_empty(&area))
return;
cx = area.x + area.width / 2.0;
cy = area.y + area.height / 2.0;
Expand Down
Loading