diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-03-14 02:07:30 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-03-14 02:07:30 +0000 |
| commit | 594648729f6c814d99f92209ce6516d458a38202 (patch) | |
| tree | 006c8524ae7a8a8d606f15dce0e83246e4bc2c1f /openbox | |
| parent | ebbcacae15d51a7e36ebc27a8bb80bbe2b7c0a5f (diff) | |
less wasted updates of wm_state
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/client.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c index fbfc15b1..3abbb7b5 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -268,7 +268,7 @@ void client_manage(Window window) /* non-zero defaults */ self->title_count = 1; - self->wmstate = NormalState; + self->wmstate = WithdrawnState; /* make sure it gets updated first time */ self->layer = -1; self->desktop = screen_num_desktops; /* always an invalid value */ self->user_time = ~0; /* maximum value, always newer than the real time */ @@ -1956,8 +1956,6 @@ static void client_change_state(ObClient *self) gulong netstate[11]; guint num; - client_change_wm_state(self); - num = 0; if (self->modal) netstate[num++] = prop_atoms.net_wm_state_modal; @@ -2633,6 +2631,7 @@ void client_shade(ObClient *self, gboolean shade) self->shaded = shade; client_change_state(self); + client_change_wm_state(self); /* the window is being hidden/shown */ /* resize the frame to just the titlebar */ frame_adjust_area(self->frame, FALSE, FALSE, FALSE); } |
