From 3593da0e15cf3ffa7933a9f949736e2a356e15a6 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Wed, 22 Apr 2020 22:56:24 -0500 Subject: continue to focus monitor under mouse cursor --- dwl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dwl.c b/dwl.c index c8778f0..6a11390 100644 --- a/dwl.c +++ b/dwl.c @@ -550,6 +550,9 @@ motionabsolute(struct wl_listener *listener, void *data) void motionnotify(uint32_t time) { + /* Update selmon (even while dragging a window) */ + selmon = xytomon(cursor->x, cursor->y); + /* If we are currently grabbing the mouse, handle and return */ if (cursor_mode == CurMove) { /* Move the grabbed client to the new position. */ -- cgit v1.2.3