mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
cursor-tracker: Make sure to sync after we change the cursor
So the cursor changes immediately...
This commit is contained in:
parent
d945501be6
commit
0824eb7c96
@ -124,6 +124,7 @@ static guint signals[LAST_SIGNAL];
|
|||||||
static void meta_cursor_tracker_set_crtc_has_hw_cursor (MetaCursorTracker *tracker,
|
static void meta_cursor_tracker_set_crtc_has_hw_cursor (MetaCursorTracker *tracker,
|
||||||
MetaCRTC *crtc,
|
MetaCRTC *crtc,
|
||||||
gboolean has_hw_cursor);
|
gboolean has_hw_cursor);
|
||||||
|
static void sync_cursor (MetaCursorTracker *tracker);
|
||||||
|
|
||||||
static MetaCursorReference *
|
static MetaCursorReference *
|
||||||
meta_cursor_reference_ref (MetaCursorReference *self)
|
meta_cursor_reference_ref (MetaCursorReference *self)
|
||||||
@ -675,6 +676,7 @@ set_window_cursor (MetaCursorTracker *tracker,
|
|||||||
if (cursor)
|
if (cursor)
|
||||||
tracker->window_cursor = meta_cursor_reference_ref (cursor);
|
tracker->window_cursor = meta_cursor_reference_ref (cursor);
|
||||||
tracker->has_window_cursor = has_cursor;
|
tracker->has_window_cursor = has_cursor;
|
||||||
|
sync_cursor (tracker);
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
@ -839,6 +841,7 @@ meta_cursor_tracker_set_grab_cursor (MetaCursorTracker *tracker,
|
|||||||
g_clear_pointer (&tracker->grab_cursor, meta_cursor_reference_unref);
|
g_clear_pointer (&tracker->grab_cursor, meta_cursor_reference_unref);
|
||||||
if (cursor != META_CURSOR_DEFAULT)
|
if (cursor != META_CURSOR_DEFAULT)
|
||||||
tracker->grab_cursor = ensure_wayland_cursor (tracker, cursor);
|
tracker->grab_cursor = ensure_wayland_cursor (tracker, cursor);
|
||||||
|
sync_cursor (tracker);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -882,6 +885,7 @@ meta_cursor_tracker_set_root_cursor (MetaCursorTracker *tracker,
|
|||||||
{
|
{
|
||||||
g_clear_pointer (&tracker->root_cursor, meta_cursor_reference_unref);
|
g_clear_pointer (&tracker->root_cursor, meta_cursor_reference_unref);
|
||||||
tracker->root_cursor = ensure_wayland_cursor (tracker, cursor);
|
tracker->root_cursor = ensure_wayland_cursor (tracker, cursor);
|
||||||
|
sync_cursor (tracker);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user