send a configurenotify on mapping after the window is shown
This commit is contained in:
parent
4ff717355a
commit
1a5139f283
1 changed files with 9 additions and 5 deletions
|
@ -425,11 +425,6 @@ void client_manage(Window window)
|
||||||
ob_debug(" but session requested %d %d instead, overriding\n",
|
ob_debug(" but session requested %d %d instead, overriding\n",
|
||||||
self->session->x, self->session->y);
|
self->session->x, self->session->y);
|
||||||
|
|
||||||
/* generate a ConfigureNotify telling the client where it is */
|
|
||||||
client_configure_full(self, self->area.x, self->area.y,
|
|
||||||
self->area.width, self->area.height,
|
|
||||||
FALSE, TRUE);
|
|
||||||
|
|
||||||
client_apply_startup_state(self);
|
client_apply_startup_state(self);
|
||||||
|
|
||||||
mouse_grab_for_client(self, TRUE);
|
mouse_grab_for_client(self, TRUE);
|
||||||
|
@ -509,6 +504,15 @@ void client_manage(Window window)
|
||||||
*/
|
*/
|
||||||
client_show(self);
|
client_show(self);
|
||||||
|
|
||||||
|
/* generate a ConfigureNotify telling the client where it is.
|
||||||
|
|
||||||
|
do this after showing the window. otherwise applications tend to
|
||||||
|
ignore the configurenotify. */
|
||||||
|
client_configure_full(self, self->area.x, self->area.y,
|
||||||
|
self->area.width, self->area.height,
|
||||||
|
FALSE, TRUE);
|
||||||
|
|
||||||
|
|
||||||
if (activate) {
|
if (activate) {
|
||||||
gboolean stacked = client_restore_session_stacking(self);
|
gboolean stacked = client_restore_session_stacking(self);
|
||||||
client_present(self, FALSE, !stacked);
|
client_present(self, FALSE, !stacked);
|
||||||
|
|
Loading…
Reference in a new issue