diff options
author | Devin J. Pohly <djpohly@gmail.com> | 2020-04-26 21:35:21 -0500 |
---|---|---|
committer | Devin J. Pohly <djpohly@gmail.com> | 2020-04-26 21:35:21 -0500 |
commit | dd50a3ee043f73120099ea0ea674773c7588bc54 (patch) | |
tree | d978280abd77179f5f70d21ebc493028fd9b4dce | |
parent | 19e712625f1d67ec992891e31a8409086ff41e8c (diff) |
mouse move now changes window monitor
-rw-r--r-- | dwl.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -291,6 +291,9 @@ buttonpress(struct wl_listener *listener, void *data) wlr_xcursor_manager_set_cursor_image(cursor_mgr, "left_ptr", cursor); cursor_mode = CurNormal; + /* Drop the window off on its new monitor */ + selmon = xytomon(cursor->x, cursor->y); + setmon(grabc, selmon); return; } break; |