From 56367846046220ef4187338f8b7cb27a777bc0ad Mon Sep 17 00:00:00 2001 From: Marek Chalupa Date: Mon, 9 Mar 2015 07:48:10 -0400 Subject: [PATCH] native: make sure the pointer is in the visible area after init The initial pointer position is set by clutter. At the moment it is the point 16x16 on the screen. But this point is not always in the visible area on monitors (the monotors can be arranged in many different ways). https://bugzilla.gnome.org/show_bug.cgi?id=745752 --- src/backends/native/meta-backend-native.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backends/native/meta-backend-native.c b/src/backends/native/meta-backend-native.c index 92031a60d..b820bc800 100644 --- a/src/backends/native/meta-backend-native.c +++ b/src/backends/native/meta-backend-native.c @@ -219,6 +219,9 @@ meta_backend_native_post_init (MetaBackend *backend) monitor_manager = meta_backend_get_monitor_manager (backend); g_signal_connect_object (monitor_manager, "monitors-changed", G_CALLBACK (on_monitors_changed), backend, G_CONNECT_AFTER); + + /* make sure the pointer is in the visible area after init */ + on_monitors_changed (monitor_manager, backend); } static MetaIdleMonitor *