diff options
| author | kolunmi <113054217+kolunmi@users.noreply.github.com> | 2023-07-20 18:34:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-20 18:34:21 -0700 |
| commit | 31178baeafb2df71a9ad94dc02aba198dc236370 (patch) | |
| tree | eb9a35fed5aa25b0b59e0ff3f28050f9f70d71d2 /dwlb.c | |
| parent | 58bb8ad713a0d7314198e75de847153ba783c5f7 (diff) | |
| parent | 62bd47f220531ed5db65bd9937e852e06bd39a53 (diff) | |
| download | dwlb-31178baeafb2df71a9ad94dc02aba198dc236370.tar.gz | |
Merge pull request #13 from NikitaIvanovV/fix-xcursor-theme-size
Remove wl_pointer_set_cursor
Diffstat (limited to 'dwlb.c')
| -rw-r--r-- | dwlb.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -180,8 +180,6 @@ static struct wl_shm *shm; static struct zwlr_layer_shell_v1 *layer_shell; static struct zxdg_output_manager_v1 *output_manager; static struct znet_tapesoftware_dwl_wm_v1 *dwl_wm; -static struct wl_cursor_image *cursor_image; -static struct wl_surface *cursor_surface; static struct wl_list bar_list, seat_list; @@ -583,18 +581,6 @@ pointer_enter(void *data, struct wl_pointer *pointer, break; } } - - if (!cursor_image) { - struct wl_cursor_theme *cursor_theme = wl_cursor_theme_load(NULL, 24 * buffer_scale, shm); - cursor_image = wl_cursor_theme_get_cursor(cursor_theme, "left_ptr")->images[0]; - cursor_surface = wl_compositor_create_surface(compositor); - wl_surface_set_buffer_scale(cursor_surface, buffer_scale); - wl_surface_attach(cursor_surface, wl_cursor_image_get_buffer(cursor_image), 0, 0); - wl_surface_commit(cursor_surface); - } - wl_pointer_set_cursor(pointer, serial, cursor_surface, - cursor_image->hotspot_x, - cursor_image->hotspot_y); } static void |