weston-launch: Go through the MetaBackend to force-update the cursor
This commit is contained in:
parent
d27e267382
commit
33f3ca7fba
3 changed files with 4 additions and 12 deletions
|
@ -83,6 +83,4 @@ void meta_cursor_tracker_update_position (MetaCursorTracker *tracker,
|
|||
int new_x,
|
||||
int new_y);
|
||||
|
||||
void meta_cursor_tracker_force_update (MetaCursorTracker *tracker);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -480,11 +480,3 @@ meta_cursor_tracker_set_pointer_visible (MetaCursorTracker *tracker,
|
|||
tracker->screen->xroot);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
meta_cursor_tracker_force_update (MetaCursorTracker *tracker)
|
||||
{
|
||||
g_assert (meta_is_wayland_compositor ());
|
||||
|
||||
meta_cursor_renderer_force_update (tracker->renderer);
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
#include <xf86drmMode.h>
|
||||
|
||||
#include "wayland/meta-wayland-private.h"
|
||||
#include "meta-cursor-tracker-private.h"
|
||||
#include "backends/meta-backend.h"
|
||||
#include "meta-weston-launch.h"
|
||||
|
||||
struct _MetaLauncher
|
||||
|
@ -216,13 +216,15 @@ meta_launcher_enter (MetaLauncher *launcher)
|
|||
|
||||
{
|
||||
MetaWaylandCompositor *compositor = meta_wayland_compositor_get_default ();
|
||||
MetaBackend *backend = meta_get_backend ();
|
||||
MetaCursorRenderer *renderer = meta_backend_get_cursor_renderer (backend);
|
||||
|
||||
/* When we mode-switch back, we need to immediately queue a redraw
|
||||
* in case nothing else queued one for us, and force the cursor to
|
||||
* update. */
|
||||
|
||||
clutter_actor_queue_redraw (compositor->stage);
|
||||
meta_cursor_tracker_force_update (compositor->seat->pointer.cursor_tracker);
|
||||
meta_cursor_renderer_force_update (renderer);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue