aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2020-12-21 08:05:40 +0100
committerGuido Cella <guido@guidocella.xyz>2020-12-21 10:28:09 +0100
commitcf7c5eae214609eddbfb98de856d33c26f8964b9 (patch)
tree5db64ecbe1632687983de040908a1d69249d0eb5
parentc9964016b8d4904be483f7c1a2fdd82ea089ef54 (diff)
don't reset the cursor image
...in internal calls to restore pointer focus. Necessary for the unclutter patch, and there's no harm in avoiding this call even in mainline; might prevents issues in same edge cases.
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 2511dd4..16f0a88 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1490,7 +1490,7 @@ motionnotify(uint32_t time)
/* 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
* off of a client or over its border. */
- if (!surface)
+ if (!surface && time)
wlr_xcursor_manager_set_cursor_image(cursor_mgr,
"left_ptr", cursor);