X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=inline;f=openbox%2Fframe.c;h=554e7b55fda8a7bbf4c1507ac34eeaa71158bcf5;hb=5009498d5934944c70b6c520ca45a727800e9528;hp=3fd8b22a69e06bf01e59bbe450295f56d7850e71;hpb=5f7ffb00ba0050de28e915f6dcbd711b03eec938;p=chaz%2Fopenbox diff --git a/openbox/frame.c b/openbox/frame.c index 3fd8b22a..554e7b55 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -238,28 +238,18 @@ void frame_show(ObFrame *self) self->visible = TRUE; XMapWindow(ob_display, self->client->window); XMapWindow(ob_display, self->window); - self->firstmap = TRUE; } } void frame_hide(ObFrame *self) { - if (self->visible || self->firstmap == FALSE) { - if (self->visible) { - self->visible = FALSE; - 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); - } else { - /* the frame wasn't visible, but the frame is being hidden now. - so we don't need to unmap the frame, but we do need to unmap - the client. */ - self->client->ignore_unmaps += 1; - XUnmapWindow(ob_display, self->client->window); - } - self->firstmap = TRUE; + if (self->visible) { + self->visible = FALSE; + self->client->ignore_unmaps += 1; + /* 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); } }