[mutter] Select for crossing events on stage and overlay



commit 9883f6e6790e4f9cd9508155268dd8418a38fd40
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Sun May 3 18:21:41 2009 -0400

    Select for crossing events on stage and overlay
    
    If the input region has been shaped, then clutter needs to
    receive EnterNotify/LeaveNotify events in order to properly
    send enter and leave events to actors when the pointer crosses
    the boundary of the stage.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=578250
---
 src/compositor/mutter/compositor-mutter.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/compositor/mutter/compositor-mutter.c b/src/compositor/mutter/compositor-mutter.c
index 1320994..cb7e48c 100644
--- a/src/compositor/mutter/compositor-mutter.c
+++ b/src/compositor/mutter/compositor-mutter.c
@@ -1767,6 +1767,7 @@ get_output_window (MetaScreen *screen)
 
   event_mask = FocusChangeMask |
                ExposureMask |
+               EnterWindowMask | LeaveWindowMask |
 	       PointerMotionMask |
                PropertyChangeMask |
                ButtonPressMask | ButtonReleaseMask |
@@ -1919,6 +1920,7 @@ clutter_cmp_manage_screen (MetaCompositor *compositor,
 
   event_mask = FocusChangeMask |
                ExposureMask |
+               EnterWindowMask | LeaveWindowMask |
                PointerMotionMask |
                PropertyChangeMask |
                ButtonPressMask | ButtonReleaseMask |



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