From 978c27d716be86fe4c3475efb0648fd236646a6f Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Wed, 24 Jun 2020 16:19:39 +1000 Subject: [PATCH] xwayland: add server and basic window functionality --- dwl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dwl.c b/dwl.c index 7e25953..fa1f044 100644 --- a/dwl.c +++ b/dwl.c @@ -956,9 +956,9 @@ pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy, uint32_t time) { /* Use top level surface if nothing more specific given */ - if (c && !surface) { + if (c && !surface) surface = WLR_SURFACE(c); - } + /* If surface is already focused, only notify of motion */ if (surface && surface == seat->pointer_state.focused_surface) { wlr_seat_pointer_notify_motion(seat, time, sx, sy);