mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
This commit is contained in:
parent
a6b4d49454
commit
aec0e75d73
1 changed files with 2 additions and 0 deletions
|
|
@ -308,6 +308,8 @@ const GrabHelper = new Lang.Class({
|
||||||
if (!this.grabbed && this._capturedEventId > 0) {
|
if (!this.grabbed && this._capturedEventId > 0) {
|
||||||
global.stage.disconnect(this._capturedEventId);
|
global.stage.disconnect(this._capturedEventId);
|
||||||
this._capturedEventId = 0;
|
this._capturedEventId = 0;
|
||||||
|
|
||||||
|
this._ignoreRelease = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hadFocus) {
|
if (hadFocus) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue