make frame and client window in a consistant mapped state when the window is grabbed
This commit is contained in:
parent
594648729f
commit
2d03d09577
1 changed files with 6 additions and 2 deletions
|
@ -531,10 +531,14 @@ void frame_grab_client(ObFrame *self, ObClient *client)
|
||||||
req's) the ButtonPress is to catch clicks on the client border */
|
req's) the ButtonPress is to catch clicks on the client border */
|
||||||
XSelectInput(ob_display, self->plate, PLATE_EVENTMASK);
|
XSelectInput(ob_display, self->plate, PLATE_EVENTMASK);
|
||||||
|
|
||||||
|
frame_adjust_area(self, TRUE, TRUE, FALSE);
|
||||||
|
|
||||||
/* map the client so it maps when the frame does */
|
/* map the client so it maps when the frame does */
|
||||||
XMapWindow(ob_display, client->window);
|
XMapWindow(ob_display, client->window);
|
||||||
|
/* map the frame so they are in a consistant state together */
|
||||||
frame_adjust_area(self, TRUE, TRUE, FALSE);
|
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 */
|
/* set all the windows for the frame in the window_map */
|
||||||
g_hash_table_insert(window_map, &self->window, client);
|
g_hash_table_insert(window_map, &self->window, client);
|
||||||
|
|
Loading…
Reference in a new issue