diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-08 08:19:10 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-08 08:19:10 +0000 |
| commit | a81b9674752bab92544f7d160734108a0b84007b (patch) | |
| tree | 2e55b14e96a675b0226a5169e5bee8e70c931fab /scripts/stackedcycle.py | |
| parent | 188e5cd5376e978e18d9760692c03bfa7562e2de (diff) | |
grab early in the cycle so that we dont miss the modifier release
Diffstat (limited to 'scripts/stackedcycle.py')
| -rw-r--r-- | scripts/stackedcycle.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/stackedcycle.py b/scripts/stackedcycle.py index c951f6b3..43507de3 100644 --- a/scripts/stackedcycle.py +++ b/scripts/stackedcycle.py @@ -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) |
