Skip to content

Commit

Permalink
Code cleanup in switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
dsheeler committed Dec 23, 2023
1 parent f22318e commit 5dc96b3
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/switcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export class Switcher {
this._width = width_in;
this._height = height_in;
this._parent = parent;
this._child = null;
this._subSwitchers = new Map();
this._backgroundColor = null;
this._windowTitles = [];
Expand Down Expand Up @@ -265,13 +264,7 @@ export class Switcher {

show() {
let monitor = this._updateActiveMonitor();
/* if (this._parent === null) {
this.actor.set_size(monitor.width, monitor.height);
this.actor.set_position(monitor.x, monitor.y);
} else {
this.actor.set_size(this._width, this._height);
this.actor.set_position(this._x, this._y);
} */

// create previews
this._createPreviews();
for (let i = 0; i < this._windows.length; i++) {
Expand All @@ -294,16 +287,9 @@ export class Switcher {
this.previewActor.set_scale(0, 0);
this.previewActor.set_scale_z(0);

//this._parent._updateSubSwitcher();
this._updateWindowTitle();
this._updatePreviews(false);
/* this._manager.platform.tween(this.previewActor, {
scale_x: 1,
scale_y: 1,
scale_z: 1,
time: this._settings.animation_time,
transition: 'easeInOutQuint',
}); */

}
this._enablePerspectiveCorrection();
this._initialDelayTimeoutId = 0;
Expand Down

0 comments on commit 5dc96b3

Please sign in to comment.