continue to focus monitor under mouse cursor

This commit is contained in:
Devin J. Pohly 2020-04-22 22:56:24 -05:00
parent 240be1af19
commit 3593da0e15

3
dwl.c
View File

@ -550,6 +550,9 @@ motionabsolute(struct wl_listener *listener, void *data)
void void
motionnotify(uint32_t time) 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 we are currently grabbing the mouse, handle and return */
if (cursor_mode == CurMove) { if (cursor_mode == CurMove) {
/* Move the grabbed client to the new position. */ /* Move the grabbed client to the new position. */