mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
swaynag: destroy old cursor theme when updated
This commit is contained in:
parent
c7e99ee0d4
commit
6e7052fc44
@ -110,6 +110,9 @@ static struct wl_surface_listener surface_listener = {
|
|||||||
|
|
||||||
static void update_cursor(struct swaynag *swaynag) {
|
static void update_cursor(struct swaynag *swaynag) {
|
||||||
struct swaynag_pointer *pointer = &swaynag->pointer;
|
struct swaynag_pointer *pointer = &swaynag->pointer;
|
||||||
|
if (swaynag->pointer.cursor_theme) {
|
||||||
|
wl_cursor_theme_destroy(swaynag->pointer.cursor_theme);
|
||||||
|
}
|
||||||
pointer->cursor_theme = wl_cursor_theme_load(NULL, 24 * swaynag->scale,
|
pointer->cursor_theme = wl_cursor_theme_load(NULL, 24 * swaynag->scale,
|
||||||
swaynag->shm);
|
swaynag->shm);
|
||||||
struct wl_cursor *cursor =
|
struct wl_cursor *cursor =
|
||||||
|
Loading…
Reference in New Issue
Block a user