summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Chalupa <mchqwerty@gmail.com>2015-03-09 07:48:10 -0400
committerRui Matos <tiagomatos@gmail.com>2015-03-09 14:26:34 +0100
commit56367846046220ef4187338f8b7cb27a777bc0ad (patch)
tree0ab0ffcf48f3c2f933a67fca44a985ce05e62271
parent9a3b178da1a39b1cb19841beac31c907fd65b856 (diff)
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
-rw-r--r--src/backends/native/meta-backend-native.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backends/native/meta-backend-native.c b/src/backends/native/meta-backend-native.c
index 92031a60..b820bc80 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 *