diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-14 02:20:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-14 02:20:59 +0000 |
| commit | 1a5139f283916ff8341d434c64f9fbe38dc8f002 (patch) | |
| tree | b6fd5c86f3a7b0e552e4d9d1e75a3a90ea0526b2 | |
| parent | 4ff717355a98d96d3ad1c93a28f2bf435b9b60ba (diff) | |
send a configurenotify on mapping after the window is shown
| -rw-r--r-- | openbox/client.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/openbox/client.c b/openbox/client.c index b61787bc..5802b816 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -425,11 +425,6 @@ void client_manage(Window window) ob_debug(" but session requested %d %d instead, overriding\n", 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); mouse_grab_for_client(self, TRUE); @@ -509,6 +504,15 @@ void client_manage(Window window) */ 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) { gboolean stacked = client_restore_session_stacking(self); client_present(self, FALSE, !stacked); |
