diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-28 04:18:54 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-28 04:18:54 +0000 |
| commit | be3b78736fc171da4f14c99a22b858ad03237fd8 (patch) | |
| tree | 8d1c0fa184b7ec761bc369f6fd98fb8f39d98d0b /openbox/client.c | |
| parent | 2f579df4e7b3af6c9a715e8921dcca9e9140d32e (diff) | |
better more obvious code
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/openbox/client.c b/openbox/client.c index a8015978..e953a613 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -321,7 +321,7 @@ void client_manage(Window window) client_restore_session_state(self); /* now we have all of the window's information so we can set this up */ - client_setup_decor_and_functions(self); + client_setup_decor_and_functions(self, FALSE); { Time t = sn_app_started(self->startup_id, self->class); @@ -1595,9 +1595,7 @@ void client_update_normal_hints(ObClient *self) } } -/*! This needs to be followed by a call to client_configure to make - the changes show */ -void client_setup_decor_and_functions(ObClient *self) +void client_setup_decor_and_functions(ObClient *self, gboolean reconfig) { /* start with everything (cept fullscreen) */ self->decorations = @@ -1753,6 +1751,9 @@ void client_setup_decor_and_functions(ObClient *self) } client_change_allowed_actions(self); + + if (reconfig) + client_reconfigure(self); } static void client_change_allowed_actions(ObClient *self) @@ -3716,8 +3717,7 @@ void client_set_undecorated(ObClient *self, gboolean undecorated) (self->functions & OB_CLIENT_FUNC_UNDECORATE || !undecorated)) { self->undecorated = undecorated; - client_setup_decor_and_functions(self); - client_reconfigure(self); /* show the lack of decorations */ + client_setup_decor_and_functions(self, TRUE); client_change_state(self); /* reflect this in the state hints */ } } |
