From 4d82dd3017655aef64893897bc12064e5c51469d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 28 Jul 2003 19:53:54 +0000 Subject: make the new placement restrictions not affect !normal windows like panels --- openbox/client.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'openbox/client.c') 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); -- cgit v1.2.3