Skip to content

Commit

Permalink
fix: disable animations for tiled windows
Browse files Browse the repository at this point in the history
This is only a workaround for the linked issue below. Currently, retiling
a tiled window via the Tiling Popup freezes it. A better way to fix this
would be to implement custom animations for tiling (instead of misusing
GNOME's existing solution).

related: #376
  • Loading branch information
Leleat committed Dec 6, 2024
1 parent c53b0a1 commit 207d715
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ export class TilingWindowManager {
if (!window || window.is_skip_taskbar())
return;

const wasTiled = window.isTiled;
const wasMaximized = window.get_maximized();

if (wasMaximized)
window.unmaximize(wasMaximized);

Expand Down Expand Up @@ -219,7 +221,12 @@ export class TilingWindowManager {

// Animations
const wActor = window.get_compositor_private();
if (Settings.getBoolean('enable-tile-animations') && wActor && !skipAnim) {
if (
Settings.getBoolean('enable-tile-animations') &&
wActor &&
!wasTiled &&
!skipAnim
) {
wActor.remove_all_transitions();
// HACK => journalctl: 'error in size change accounting'...?
// TODO: no animation if going from maximized -> tiled and back to back multiple times?
Expand Down

0 comments on commit 207d715

Please sign in to comment.