Skip to content

Commit

Permalink
moveHandler: Use is_grabbed instead of get_grab_op
Browse files Browse the repository at this point in the history
`global.display.is_grabbed` replaced `global.display.get_grab_op` since
GNOME 44. Since the current extension version only supports GNOME 45+
drop the compatibility code.
  • Loading branch information
Leleat committed Apr 7, 2024
1 parent e9a68e7 commit c966c40
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,7 @@ export default class TilingMoveHandler {
// Only update the monitorNr, if the latest timer timed out.
if (timerId === this._latestMonitorLockTimerId) {
this._monitorNr = global.display.get_current_monitor();
if (global.display.is_grabbed?.() ||
global.display.get_grab_op?.() === grabOp) // !
if (global.display.is_grabbed())
this._edgeTilingPreview(window, grabOp);
}

Expand Down

0 comments on commit c966c40

Please sign in to comment.