mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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:
parent
9a3b178da1
commit
5636784604
@ -219,6 +219,9 @@ meta_backend_native_post_init (MetaBackend *backend)
|
|||||||
monitor_manager = meta_backend_get_monitor_manager (backend);
|
monitor_manager = meta_backend_get_monitor_manager (backend);
|
||||||
g_signal_connect_object (monitor_manager, "monitors-changed",
|
g_signal_connect_object (monitor_manager, "monitors-changed",
|
||||||
G_CALLBACK (on_monitors_changed), backend, G_CONNECT_AFTER);
|
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 *
|
static MetaIdleMonitor *
|
||||||
|
Loading…
Reference in New Issue
Block a user