| @@ -42,9 +42,13 @@ impl WindowManager { |
| 42 |
let root = connection.setup().roots[screen_number].root; |
42 |
let root = connection.setup().roots[screen_number].root; |
| 43 |
let screen = connection.setup().roots[screen_number].clone(); |
43 |
let screen = connection.setup().roots[screen_number].clone(); |
| 44 |
|
44 |
|
| 45 |
- let cursor_handle = |
45 |
+ let normal_cursor = CursorHandle::new( |
| 46 |
- CursorHandle::new(&connection, screen_number, &Default::default())?.reply()?; |
46 |
+ &connection, |
| 47 |
- let normal_cursor = cursor_handle.load_cursor(&connection, "left_ptr")?; |
47 |
+ screen_number, |
|
|
48 |
+ &x11rb::resource_manager::new_from_default(&connection)?, |
|
|
49 |
+ )? |
|
|
50 |
+ .reply()? |
|
|
51 |
+ .load_cursor(&connection, "left_ptr")?; |
| 48 |
|
52 |
|
| 49 |
connection |
53 |
connection |
| 50 |
.change_window_attributes( |
54 |
.change_window_attributes( |