[mutter] native: make sure the pointer is in the visible area after init



commit 56367846046220ef4187338f8b7cb27a777bc0ad
Author: Marek Chalupa <mchqwerty gmail com>
Date:   Mon Mar 9 07:48:10 2015 -0400

    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 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 92031a6..b820bc8 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 *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]