Skip to content

Commit

Permalink
decorations: remove GTK css properly on extension deactivation
Browse files Browse the repository at this point in the history
fixes issue #86
  • Loading branch information
jonian committed Jan 2, 2019
1 parent ff6c0da commit 8ffbf44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion unite@hardpixel.eu/modules/windowDecoration.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var WindowDecoration = new Lang.Class({
},

_onDeactivate() {
this._updateUserStyles();
this._removeUserStyles();
this._decorateWindows();
},

Expand Down Expand Up @@ -108,6 +108,10 @@ var WindowDecoration = new Lang.Class({
loadUserStyles(styles);
},

_removeUserStyles() {
loadUserStyles('');
},

_undecorateWindow(win) {
GLib.idle_add(0, () => { this._toggleTitlebar(win) });
},
Expand Down

0 comments on commit 8ffbf44

Please # to comment.