[gnome-shell] grabHelper: Ensure we reset ignoreRelease when we drop our event handler



commit aec0e75d7332e56a6fb14ca06a18adf3adab2b57
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Mar 18 16:26:13 2013 -0400

    grabHelper: Ensure we reset ignoreRelease when we drop our event handler
    
    Since we drop our event handler, we won't see ever the release event
    from the button press, so unset the flag so it doesn't muck with the
    next time somebody takes a grab.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696102

 js/ui/grabHelper.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js
index 2547da6..0eed19b 100644
--- a/js/ui/grabHelper.js
+++ b/js/ui/grabHelper.js
@@ -308,6 +308,8 @@ const GrabHelper = new Lang.Class({
         if (!this.grabbed && this._capturedEventId > 0) {
             global.stage.disconnect(this._capturedEventId);
             this._capturedEventId = 0;
+
+            this._ignoreRelease = false;
         }
 
         if (hadFocus) {


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