Is there a particular reason for having this code in activateWindow function (window.c 4212)? if (w->state & CompWindowStateHiddenMask) { w->state &= ~CompWindowStateShadedMask; if (w->shaded) showWindow (w); } It brake scale plugin unshading shaded windows on plugin terminate...