summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-08 17:22:46 +0000
committerDana Jansens <danakj@orodu.net>2003-09-08 17:22:46 +0000
commit3942d579d8423e994e29f6a5e80ed8021459d978 (patch)
treeb62a5a583768b5379a14288cbc8f9bcda4f3bb0f
parent58e7af84b9b5b8cb6d01b82b74e729235f3bf0a2 (diff)
dont reset all the states to FALSE in client_get_state, this made an initial IconicState get ignored
-rw-r--r--openbox/client.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/openbox/client.c b/openbox/client.c
index c8f00605..aec05d6f 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -660,6 +660,8 @@ static void client_get_all(ObClient *self)
client_get_state(self);
client_get_shaped(self);
+ g_message("self->iconic %d", self->iconic);
+
client_get_mwm_hints(self);
client_get_type(self);/* this can change the mwmhints for special cases */
@@ -749,10 +751,6 @@ static void client_get_state(ObClient *self)
guint32 *state;
guint num;
- self->modal = self->shaded = self->max_horz = self->max_vert =
- self->fullscreen = self->above = self->below = self->iconic =
- self->skip_taskbar = self->skip_pager = FALSE;
-
if (PROP_GETA32(self->window, net_wm_state, atom, &state, &num)) {
gulong i;
for (i = 0; i < num; ++i) {
@@ -1712,6 +1710,7 @@ static void client_apply_startup_state(ObClient *self)
{
/* these are in a carefully crafted order.. */
+ g_message("self->iconic %d", self->iconic);
if (self->iconic) {
self->iconic = FALSE;
client_iconify(self, TRUE, FALSE);