void frame_show(ObFrame *self)
{
+ ob_debug("frame_show for window 0x%x : %d\n", self->client->window,
+ self->visible);
if (!self->visible) {
self->visible = TRUE;
XMapWindow(ob_display, self->client->window);
void frame_hide(ObFrame *self)
{
+ ob_debug("frame_hide for window 0x%x : %d\n", self->client->window,
+ self->visible);
if (self->visible) {
self->visible = FALSE;
- self->client->ignore_unmaps += 2;
+ 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);
/* map the client so it maps when the frame does */
XMapWindow(ob_display, client->window);
- /* map the frame so they are in a consistant state together */
- XMapWindow(ob_display, self->window);
- /* reflect that we're initially visible */
- self->visible = TRUE;
/* set all the windows for the frame in the window_map */
g_hash_table_insert(window_map, &self->window, client);