summaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-05-02 15:22:07 -0500
committerDevin J. Pohly <djpohly@gmail.com>2020-05-02 15:22:07 -0500
commit3096d4eec1e00bdc518baf53e4fddd884b4f64ce (patch)
tree38be987e6176b21661a9548ccf11ae7fbec160ce /dwl.c
parentecdd012f6b2ba4e1ed636c6d8456b86f326d9a81 (diff)
set default cursor over window borders
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dwl.c b/dwl.c
index 709c384..68a1d5e 100644
--- a/dwl.c
+++ b/dwl.c
@@ -725,10 +725,10 @@ motionnotify(uint32_t time)
/* Otherwise, find the client under the pointer and send the event along. */
c = xytoclient(cursor->x, cursor->y, &surface, &sx, &sy);
- /* If there's no client under the cursor, set the cursor image to a
+ /* If there's no client surface under the cursor, set the cursor image to a
* default. This is what makes the cursor image appear when you move it
- * around the screen, not over any clients. */
- if (!c)
+ * off of a client or over its border. */
+ if (!surface)
wlr_xcursor_manager_set_cursor_image(cursor_mgr,
"left_ptr", cursor);