diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-07-28 19:53:54 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-07-28 19:53:54 +0000 |
| commit | 4d82dd3017655aef64893897bc12064e5c51469d (patch) | |
| tree | 721d7cd6bbcab6d4544bc8a2d055dcbb21241663 /openbox/client.c | |
| parent | e6486bff0881de6ba710a39f013cfbaf03657467 (diff) | |
make the new placement restrictions not affect !normal windows like panels
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c index 70873a43..87865462 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -300,7 +300,8 @@ void client_manage(Window window) dispatch_client(Event_Client_New, self, 0, 0); /* make sure the window is visible */ - client_move_onscreen(self, TRUE); + if (client_normal(self)) + client_move_onscreen(self, TRUE); screen_update_areas(); @@ -1346,8 +1347,11 @@ void client_update_strut(ObClient *self) if (!PROP_GETA32(self->window, net_wm_strut, cardinal, &data, &num)) { STRUT_SET(self->strut, 0, 0, 0, 0); } else { - if (num == 4) + if (num == 4) { + g_message("new strut: %d %d %d %d", + data[0], data[2], data[1], data[3]); STRUT_SET(self->strut, data[0], data[2], data[1], data[3]); + } else STRUT_SET(self->strut, 0, 0, 0, 0); g_free(data); |
