don't notify of activity

...or update selmon when we just want to restore pointer focus.
このコミットが含まれているのは:
Guido Cella 2020-12-20 16:04:13 +01:00
コミット b161b5d8f4
1個のファイルの変更7行の追加4行の削除

11
dwl.c
ファイルの表示

@ -1427,11 +1427,14 @@ motionabsolute(struct wl_listener *listener, void *data)
void
motionnotify(uint32_t time)
{
wlr_idle_notify_activity(idle, seat);
// time is 0 in internal calls meant to restore pointer focus.
if (time) {
wlr_idle_notify_activity(idle, seat);
/* Update selmon (even while dragging a window) */
if (sloppyfocus)
selmon = xytomon(cursor->x, cursor->y);
/* Update selmon (even while dragging a window) */
if (sloppyfocus)
selmon = xytomon(cursor->x, cursor->y);
}
/* If we are currently grabbing the mouse, handle and return */
if (cursor_mode == CurMove) {