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
This commit is contained in:
Marek Chalupa 2015-03-09 07:48:10 -04:00 committed by Rui Matos
parent 9a3b178da1
commit 5636784604

View File

@ -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 *