From bddbe9432837edccc67b76f2d29d4dbc9b02203f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 10 Jul 2003 19:06:00 +0000 Subject: make ob_state a function so it cant be changed outside of openbox.c --- plugins/placement/history.c | 2 +- plugins/placement/placement.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/placement') diff --git a/plugins/placement/history.c b/plugins/placement/history.c index 22dbb6e0..eeff1f63 100644 --- a/plugins/placement/history.c +++ b/plugins/placement/history.c @@ -58,7 +58,7 @@ gboolean place_history(ObClient *c) if (hi && !(hi->flags & PLACED)) { hi->flags |= PLACED; - if (ob_state != OB_STATE_STARTING) { + if (ob_state() != OB_STATE_STARTING) { if (hi->flags & HAVE_POSITION || hi->flags & HAVE_SIZE) { if (hi->flags & HAVE_POSITION) { diff --git a/plugins/placement/placement.c b/plugins/placement/placement.c index a84c41ec..599d58a9 100644 --- a/plugins/placement/placement.c +++ b/plugins/placement/placement.c @@ -30,7 +30,7 @@ static void place_random(ObClient *c) int x, y; Rect *area; - if (ob_state == OB_STATE_STARTING) return; + if (ob_state() == OB_STATE_STARTING) return; area = screen_area_monitor(c->desktop, g_random_int_range(0, screen_num_monitors)); -- cgit v1.2.3