Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable anims for tiled windows #385

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading