]> Dogcows Code - chaz/openbox/commitdiff
grab early in the cycle so that we dont miss the modifier release
authorDana Jansens <danakj@orodu.net>
Sat, 8 Feb 2003 08:19:10 +0000 (08:19 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 8 Feb 2003 08:19:10 +0000 (08:19 +0000)
scripts/stackedcycle.py

index c951f6b30a92d7f53a7add2c709bedce41f43bef..43507de389575e4181cc2255efb67723de67a604 100644 (file)
@@ -174,6 +174,12 @@ class _cycledata:
 
     def cycle(self, data, forward):
         if not self.cycling:
+            ob.kgrab(data.screen, _grabfunc)
+            # the pointer grab causes pointer events during the keyboard grab
+            # to go away, which means we don't get enter notifies when the
+            # popup disappears, screwing up the focus
+            ob.mgrab(data.screen)
+
             self.cycling = 1
             focus._disable = 1
             self.state = data.state
@@ -184,12 +190,6 @@ class _cycledata:
             self.clients = [] # so it doesnt try start partway through the list
             self.populatelist()
         
-            ob.kgrab(self.screen.number(), _grabfunc)
-            # the pointer grab causes pointer events during the keyboard grab
-            # to go away, which means we don't get enter notifies when the
-            # popup disappears, screwing up the focus
-            ob.mgrab(self.screen.number())
-
         if not len(self.clients): return # don't both doing anything
         
         self.menuwidgets[self.menupos].setHighlighted(0)
This page took 0.0244 seconds and 4 git commands to generate.