Skip to content

Commit

Permalink
Merge pull request #253 from Leleat/fix-grab-regression
Browse files Browse the repository at this point in the history
Window Grab Operations: Fix regression for GNOME 44
  • Loading branch information
Leleat authored Mar 28, 2023
2 parents 31cee43 + c80e95c commit 6dea856
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ var Handler = class TilingMoveHandler {

this._displaySignals = [];
const g1Id = global.display.connect('grab-op-begin', (src, window, grabOp) => {
grabOp &= ~1024; // META_GRAB_OP_WINDOW_FLAG_UNCONSTRAINED

if (window && moveOps.includes(grabOp))
this._onMoveStarted(window, grabOp);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ var Handler = class TilingResizeHandler {
};

const g1 = global.display.connect('grab-op-begin', (d, window, grabOp) => {
grabOp &= ~1024; // META_GRAB_OP_WINDOW_FLAG_UNCONSTRAINED

if (window && isResizing(grabOp))
this._onResizeStarted(window, grabOp);
});
const g2 = global.display.connect('grab-op-end', (d, window, grabOp) => {
grabOp &= ~1024; // META_GRAB_OP_WINDOW_FLAG_UNCONSTRAINED

if (window && isResizing(grabOp))
this._onResizeFinished(window, grabOp);
});
Expand Down

0 comments on commit 6dea856

Please sign in to comment.