make this marginally less ugly

This commit is contained in:
Devin J. Pohly 2020-08-16 11:36:38 -05:00
parent 41c3f91b03
commit c0b05eddb8

5
dwl.c
View file

@ -977,10 +977,9 @@ motionnotify(uint32_t time)
cursor->y - c->surface.xwayland->y - c->bw, &sx, &sy); cursor->y - c->surface.xwayland->y - c->bw, &sx, &sy);
/* Otherwise, find the client under the pointer and send the event along. */ /* Otherwise, find the client under the pointer and send the event along. */
} else if ((c = xytoclient(cursor->x, cursor->y))) { } else
#else
if ((c = xytoclient(cursor->x, cursor->y))) {
#endif #endif
if ((c = xytoclient(cursor->x, cursor->y))) {
#ifdef XWAYLAND #ifdef XWAYLAND
if (c->type != XDGShell) if (c->type != XDGShell)
surface = wlr_surface_surface_at(c->surface.xwayland->surface, surface = wlr_surface_surface_at(c->surface.xwayland->surface,