diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-10-15 03:01:34 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-10-15 03:01:34 +0000 |
| commit | c9233ddb23ee71de0e1fde8eb031d241cbaec8ef (patch) | |
| tree | dad1886ab0b25cd87c060815d14047215ea22ee1 /openbox/frame.c | |
| parent | 37c9f2d96162aaf96c68fb2ef4cc48bca8a875fc (diff) | |
unmap and map the client window when the frame is hidden/shown
Diffstat (limited to 'openbox/frame.c')
| -rw-r--r-- | openbox/frame.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openbox/frame.c b/openbox/frame.c index 93263e27..40c15e00 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -189,6 +189,7 @@ void frame_show(ObFrame *self) { if (!self->visible) { self->visible = TRUE; + XMapWindow(ob_display, self->client->window); XMapWindow(ob_display, self->window); } } @@ -197,8 +198,11 @@ void frame_hide(ObFrame *self) { if (self->visible) { self->visible = FALSE; - self->client->ignore_unmaps++; + self->client->ignore_unmaps += 2; + /* we unmap the client itself so that we can get MapRequest + events, and because the ICCCM tells us to! */ XUnmapWindow(ob_display, self->window); + XUnmapWindow(ob_display, self->client->window); } } |
