mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 11:46:31 +00:00
don't notify of activity
...or update selmon when we just want to restore pointer focus.
This commit is contained in:
parent
13c7e039bb
commit
b161b5d8f4
1 changed files with 7 additions and 4 deletions
3
dwl.c
3
dwl.c
|
@ -1427,11 +1427,14 @@ motionabsolute(struct wl_listener *listener, void *data)
|
||||||
void
|
void
|
||||||
motionnotify(uint32_t time)
|
motionnotify(uint32_t time)
|
||||||
{
|
{
|
||||||
|
// time is 0 in internal calls meant to restore pointer focus.
|
||||||
|
if (time) {
|
||||||
wlr_idle_notify_activity(idle, seat);
|
wlr_idle_notify_activity(idle, seat);
|
||||||
|
|
||||||
/* Update selmon (even while dragging a window) */
|
/* Update selmon (even while dragging a window) */
|
||||||
if (sloppyfocus)
|
if (sloppyfocus)
|
||||||
selmon = xytomon(cursor->x, cursor->y);
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue