aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-08-16 11:36:38 -0500
committerDevin J. Pohly <djpohly@gmail.com>2020-08-16 11:36:38 -0500
commitc0b05eddb8c3cca888f75eab45288802ce592431 (patch)
tree88f30130b7932c163a5b071834376c11ea596617
parent41c3f91b03d67a9862ec2b04ac0b8749746611fa (diff)
make this marginally less ugly
-rw-r--r--dwl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dwl.c b/dwl.c
index 69ca78e..c4af87e 100644
--- a/dwl.c
+++ b/dwl.c
@@ -977,10 +977,9 @@ motionnotify(uint32_t time)
cursor->y - c->surface.xwayland->y - c->bw, &sx, &sy);
/* Otherwise, find the client under the pointer and send the event along. */
- } else if ((c = xytoclient(cursor->x, cursor->y))) {
-#else
- if ((c = xytoclient(cursor->x, cursor->y))) {
+ } else
#endif
+ if ((c = xytoclient(cursor->x, cursor->y))) {
#ifdef XWAYLAND
if (c->type != XDGShell)
surface = wlr_surface_surface_at(c->surface.xwayland->surface,