Commit 61b1f17 1 parent c1b93fc commit 61b1f17 Copy full SHA for 61b1f17
File tree 2 files changed +8
-2
lines changed
src/platform_impl/linux/wayland
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 17
17
- On X11, generate synthetic key events for keys held when a window gains or loses focus.
18
18
- On X11, issue a ` CursorMoved ` event when a ` Touch ` event occurs,
19
19
as X11 implicitly moves the cursor for such events.
20
+ - On Wayland, fix cursor icon updates on window borders when using CSD.
20
21
21
22
# 0.20.0 Alpha 4 (2019-10-18)
22
23
Original file line number Diff line number Diff line change @@ -56,6 +56,13 @@ pub fn implement_pointer<T: 'static>(
56
56
let wid = store. find_wid ( & surface) ;
57
57
if let Some ( wid) = wid {
58
58
mouse_focus = Some ( wid) ;
59
+
60
+ // Reload cursor style only when we enter winit's surface. Calling
61
+ // this function every time on `PtrEvent::Enter` could interfere with
62
+ // SCTK CSD handling, since it changes cursor icons when you hover
63
+ // cursor over the window borders.
64
+ cursor_manager. reload_cursor_style ( ) ;
65
+
59
66
sink. send_window_event (
60
67
WindowEvent :: CursorEntered {
61
68
device_id : crate :: event:: DeviceId (
@@ -75,8 +82,6 @@ pub fn implement_pointer<T: 'static>(
75
82
wid,
76
83
) ;
77
84
}
78
-
79
- cursor_manager. reload_cursor_style ( ) ;
80
85
}
81
86
PtrEvent :: Leave { surface, .. } => {
82
87
mouse_focus = None ;
You can’t perform that action at this time.
0 commit comments