3.30: fix grab

It seems that we're getting display twice as input to `grap-op-begin`.

In the gnome-shell source they're not doing this, but that might actually be a
bug.
This commit is contained in:
Tor Hedin Brønner
2018-09-19 13:47:46 +02:00
parent 14ab95a6f5
commit eeb4d5a887
+2 -2
View File
@@ -877,11 +877,11 @@ class Spaces extends Map {
this.signals.connect(display, 'grab-op-begin',
global.screen ?
(display, screen, mw, type) => grabBegin(mw, type) :
(display, mw, type) => grabBegin(mw, type));
(display, d, mw, type) => grabBegin(mw, type));
this.signals.connect(display, 'grab-op-end',
global.screen ?
(display, screen, mw, type) => grabEnd(mw, type) :
(display, mw, type) => grabEnd(mw, type));
(display, d, mw, type) => grabEnd(mw, type));
this.signals.connect(Main.layoutManager, 'monitors-changed', this.monitorsChanged.bind(this));