Commit 3e1d169 1 parent c1b93fc commit 3e1d169 Copy full SHA for 3e1d169
File tree 2 files changed +9
-2
lines changed
src/platform_impl/linux/wayland
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Unreleased
2
2
3
+ - On Wayland, fix cursor icon updates on window borders when using CSD.
4
+
3
5
# # 0.20.0 Alpha 5 (2019-12-09)
4
6
5
7
- On macOS, fix application termination on ` ControlFlow::Exit `
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