From 5f7ffb00ba0050de28e915f6dcbd711b03eec938 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 14 Mar 2007 13:58:36 +0000 Subject: refix for managing iconic windows, without having the frame map which caused flashing. instead, keep track of if the frame has been mapped yet. if it hasn't and it is getting hidden, then make sure to unmap the child. --- openbox/client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'openbox/client.c') diff --git a/openbox/client.c b/openbox/client.c index f5e600a2..1a0d2531 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -2116,10 +2116,9 @@ void client_showhide(ObClient *self) { if (client_should_show(self)) { - if (!self->frame->visible) - frame_show(self->frame); + frame_show(self->frame); } - else if (self->frame->visible) { + else { frame_hide(self->frame); /* Fall back focus since we're disappearing */ -- cgit v1.2.3