summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-14 13:58:36 +0000
committerDana Jansens <danakj@orodu.net>2007-03-14 13:58:36 +0000
commit5f7ffb00ba0050de28e915f6dcbd711b03eec938 (patch)
tree574f2e7e155d8878d88e651a103206186b4ec6db /openbox/client.c
parente2521f5c6477323ec683ace8c0af8b4c58112a54 (diff)
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.
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c5
1 files changed, 2 insertions, 3 deletions
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 */