Skip to content

Commit

Permalink
fix: remove excessive polling hint restack
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmaranan authored and mmstick committed Sep 25, 2020
1 parent 4a3d710 commit 9286532
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ export class ShellWindow {
}

GLib.timeout_add(GLib.PRIORITY_LOW, restackSpeed, () => {
this.update_border_layout();
let border = this.border;
let actor = this.meta.get_compositor_private();
let win_group = global.window_group;
Expand All @@ -395,6 +394,7 @@ export class ShellWindow {
win_group.set_child_above_sibling(border, actor);
}
}
this.update_border_layout();
}

return false; // make sure it runs once
Expand Down Expand Up @@ -449,8 +449,6 @@ export class ShellWindow {
border.set_position(frameX - borderSize, frameY - borderSize);
border.set_size(frameWidth + (2 * borderSize), frameHeight + (2 * borderSize));
}

this.restack();
}

private window_changed() {
Expand Down

0 comments on commit 9286532

Please sign in to comment.