Skip to content

Commit

Permalink
fix: Disable window animations for tile arrangements
Browse files Browse the repository at this point in the history
They cause a lot of issues with no clear solution
  • Loading branch information
mmstick committed Dec 29, 2020
1 parent e2d2b4c commit 1c110ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/forest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -869,5 +869,5 @@ function move_window(ext: Ext, window: ShellWindow, rect: Rectangular, on_comple
window.move(ext, rect, () => {
on_complete();
ext.size_signals_unblock(window);
});
}, false);
}
4 changes: 2 additions & 2 deletions src/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export class ShellWindow {
return xid ? xprop.may_decorate(xid) : false;
}

move(ext: Ext, rect: Rectangular, on_complete?: () => void) {
move(ext: Ext, rect: Rectangular, on_complete?: () => void, animate: boolean = true) {
if ((!this.same_workspace() && this.is_maximized())) {
return
}
Expand Down Expand Up @@ -302,7 +302,7 @@ export class ShellWindow {
}
};

if (ext.animate_windows && !ext.init) {
if (animate && ext.animate_windows && !ext.init) {
const current = meta.get_frame_rect();
const buffer = meta.get_buffer_rect();

Expand Down

0 comments on commit 1c110ff

Please sign in to comment.