summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-10 19:06:00 +0000
committerDana Jansens <danakj@orodu.net>2003-07-10 19:06:00 +0000
commitbddbe9432837edccc67b76f2d29d4dbc9b02203f (patch)
tree3c895659fe273a6562c4ffaff76d0b298ae27059 /openbox/client.c
parent35418ca0fcd3fd28ef579f4435b8bad3b7c87f04 (diff)
make ob_state a function so it cant be changed outside of openbox.c
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 644198a7..339c2a18 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -256,7 +256,7 @@ void client_manage(Window window)
focus_order_add_new(self);
/* focus the new window? */
- if (ob_state != OB_STATE_STARTING && config_focus_new &&
+ if (ob_state() != OB_STATE_STARTING && config_focus_new &&
(self->type == OB_CLIENT_TYPE_NORMAL || self->type == OB_CLIENT_TYPE_DIALOG)) {
gboolean group_foc = FALSE;
@@ -405,7 +405,7 @@ void client_unmanage(ObClient *self)
frame_release_client(self->frame, self);
self->frame = NULL;
- if (ob_state != OB_STATE_EXITING) {
+ if (ob_state() != OB_STATE_EXITING) {
/* these values should not be persisted across a window
unmapping/mapping */
prop_erase(self->window, prop_atoms.net_wm_desktop);
@@ -1125,7 +1125,7 @@ void client_update_wmhints(ObClient *self)
/* only do this when first managing the window *AND* when we aren't
starting up! */
- if (ob_state != OB_STATE_STARTING && self->frame == NULL)
+ if (ob_state() != OB_STATE_STARTING && self->frame == NULL)
if (hints->flags & StateHint)
self->iconic = hints->initial_state == IconicState;