summaryrefslogtreecommitdiff
path: root/src/backends/meta-cursor-renderer.c
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2020-07-29 11:22:19 +0200
committerJonas Ådahl <jadahl@gmail.com>2020-08-05 11:11:38 +0200
commiteeee7bed1dbc58f159ecc4ef84848237452b87b1 (patch)
treed1f1fd672933b525276484cb59c351ea00318335 /src/backends/meta-cursor-renderer.c
parentb24b95db15c84284e7f628eb336010fc0e690403 (diff)
downloadmutter-eeee7bed1dbc58f159ecc4ef84848237452b87b1.tar.gz
cursor-tracker: Add way to force tracking cursor position
On X11 we won't always receive cursor positions, as some other client might have grabbed the pointer (e.g. for implementing a popup menu). To make screen casting show a somewhat correct cursor position, we need to actively poll the X server about the current cursor position. We only really want to do this when screen casting or taking a screenshot, so add an API that forces the cursor tracker to track the cursor position. On the native backend this is a no-op as we by default always track the cursor position anyway. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1391
Diffstat (limited to 'src/backends/meta-cursor-renderer.c')
-rw-r--r--src/backends/meta-cursor-renderer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/backends/meta-cursor-renderer.c b/src/backends/meta-cursor-renderer.c
index c4d680235..c8bf6578d 100644
--- a/src/backends/meta-cursor-renderer.c
+++ b/src/backends/meta-cursor-renderer.c
@@ -383,8 +383,6 @@ meta_cursor_renderer_set_position (MetaCursorRenderer *renderer,
{
MetaCursorRendererPrivate *priv = meta_cursor_renderer_get_instance_private (renderer);
- g_assert (meta_is_wayland_compositor ());
-
priv->current_x = x;
priv->current_y = y;