hide window before restoring the client on unmaps

otherwise compositors will update the texture and operate on (fade) the
frame instead of the client.
Didn't test why this only happens on ARGBs, but could be the colormap
installation.

BUG: 1110
This commit is contained in:
Thomas Lübking 2016-07-27 22:17:15 +02:00 committed by Mathias Gumz
parent 5e08a23f6c
commit 58491165d3

View file

@ -2111,6 +2111,8 @@ void FluxboxWindow::unmapNotifyEvent(XUnmapEvent &ue) {
fbdbg<<"("<<__FUNCTION__<<"): 0x"<<hex<<client->window()<<dec<<endl;
fbdbg<<"("<<__FUNCTION__<<"): title="<<client->title().logical()<<endl;
if (numClients() == 1) // unmapping the last client
frame().hide(); // hide this now, otherwise compositors will fade out the frame, bug #1110
restore(client, false);
}