Skip to content

Commit

Permalink
Enable showing of Coverflow and switching with arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
p91paul committed May 16, 2013
1 parent 5510c8b commit 69b3ba0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions [email protected]/switcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,18 @@ Switcher.prototype = {
this.actor.connect('key-release-event', Lang.bind(this, this._keyReleaseEvent));
this.actor.connect('scroll-event', Lang.bind(this, this._scrollEvent));

if (this._modifierMask){
let [x, y, mods] = global.get_pointer();
if (this._modifierMask && !(mods & this._modifierMask)){
// There's a race condition; if the user released Alt before
// we got the grab, then we won't be notified. (See
// https://bugzilla.gnome.org/show_bug.cgi?id=596695 for
// details) So we check now. (Have to do this after updating
// selection.)
let [x, y, mods] = global.get_pointer();
if (!(mods & this._modifierMask)) {
this._activateSelected();
return;
}
this._activateSelected();
return;
}
else
this._modifierMask = mods;

this._initialDelayTimeoutId = Mainloop.timeout_add(INITIAL_DELAY_TIMEOUT, Lang.bind(this, this.show));
},
Expand Down

0 comments on commit 69b3ba0

Please sign in to comment.