Skip to content

Commit

Permalink
Redirect grab op to handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmaranan committed Apr 9, 2023
1 parent 7b746d7 commit 1cb0010
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions window.js
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ var WindowManager = GObject.registerClass(

// Ensure that the workspace tiling is honored
if (this.isActiveWindowWorkspaceTiled(metaWindow)) {
if (!global.display.get_grab_op() === Meta.GrabOp.WINDOW_BASE)
if (!this.grabOp === Meta.GrabOp.WINDOW_BASE)
this.updateTabbedFocus(existNodeWindow);
this.updateStackedFocus(existNodeWindow);
} else {
Expand Down Expand Up @@ -2127,6 +2127,7 @@ var WindowManager = GObject.registerClass(
}

_handleGrabOpBegin(_display, _metaWindow, grabOp) {
this.grabOp = grabOp;
this.trackCurrentMonWs();
let focusMetaWindow = this.focusMetaWindow;

Expand Down Expand Up @@ -2202,7 +2203,7 @@ var WindowManager = GObject.registerClass(

_handleResizing(focusNodeWindow) {
if (!focusNodeWindow) return;
let grabOp = global.display.get_grab_op();
let grabOp = this.grabOp;
let initGrabOp = focusNodeWindow.initGrabOp;
let direction = Utils.directionFromGrab(grabOp);
let orientation = Utils.orientationFromGrab(grabOp);
Expand Down

0 comments on commit 1cb0010

Please sign in to comment.