Skip to content

Commit

Permalink
decorations: do not use idle_add on removal
Browse files Browse the repository at this point in the history
causes black border in electron apps
  • Loading branch information
jonian committed May 11, 2019
1 parent eb7b64f commit baba401
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions unite@hardpixel.eu/modules/windowDecoration.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,10 @@ var WindowDecoration = new GObject.Class({
let winId = this._getWindowXID(win);
if (!winId) return;

GLib.idle_add(0, () => {
if (this._useMotifHints)
this._toggleDecorationsMotif(winId, hide);
else
this._toggleDecorationsGtk(winId, hide);
});
if (this._useMotifHints)
this._toggleDecorationsMotif(winId, hide);
else
this._toggleDecorationsGtk(winId, hide);
},

_toggleDecorationsGtk(winId, hide) {
Expand Down

0 comments on commit baba401

Please sign in to comment.