forked from AuroraMiddleware/gtk
[broadway] Fix typo in implicit grab support
We do an implicit grab if there is no grab already, not only if there is one.
This commit is contained in:
parent
dd07f534f4
commit
9d974ca13a
@ -819,7 +819,7 @@ function onMouseDown (ev) {
|
||||
var id = getSurfaceId(ev);
|
||||
id = getEffectiveEventTarget (id);
|
||||
var pos = getPositionsFromEvent(ev, id);
|
||||
if (grab.window != null)
|
||||
if (grab.window == null)
|
||||
doGrab (id, false, true);
|
||||
var button = ev.button + 1;
|
||||
lastState = lastState | getButtonMask (button);
|
||||
|
Loading…
Reference in New Issue
Block a user