removed focus_changed logic

This commit is contained in:
Palanix 2021-09-06 16:00:12 +02:00 committed by Jente Hidskes
parent 0ba1c40aa6
commit d1367b1c46

5
seat.c
View file

@ -563,10 +563,7 @@ process_cursor_motion(struct cg_seat *seat, uint32_t time)
} else { } else {
wlr_seat_pointer_notify_enter(wlr_seat, surface, sx, sy); wlr_seat_pointer_notify_enter(wlr_seat, surface, sx, sy);
bool focus_changed = wlr_seat->pointer_state.focused_surface != surface; wlr_seat_pointer_notify_motion(wlr_seat, time, sx, sy);
if (!focus_changed && time > 0 || wlr_seat->drag) {
wlr_seat_pointer_notify_motion(wlr_seat, time, sx, sy);
}
} }
struct cg_drag_icon *drag_icon; struct cg_drag_icon *drag_icon;