summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-14 02:23:50 +0000
committerDana Jansens <danakj@orodu.net>2007-03-14 02:23:50 +0000
commit2d03d0957792a08c852ad8997f0f19ed579c07d1 (patch)
treefe5c8adebeaff0e84a70a3e4ae024923c9bdb4c8 /openbox
parent594648729f6c814d99f92209ce6516d458a38202 (diff)
make frame and client window in a consistant mapped state when the window is grabbed
Diffstat (limited to 'openbox')
-rw-r--r--openbox/frame.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 06b01173..9a506d15 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -531,10 +531,14 @@ void frame_grab_client(ObFrame *self, ObClient *client)
req's) the ButtonPress is to catch clicks on the client border */
XSelectInput(ob_display, self->plate, PLATE_EVENTMASK);
+ frame_adjust_area(self, TRUE, TRUE, FALSE);
+
/* map the client so it maps when the frame does */
XMapWindow(ob_display, client->window);
-
- frame_adjust_area(self, TRUE, TRUE, FALSE);
+ /* 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);