summaryrefslogtreecommitdiff
path: root/plugins
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 /plugins
parent35418ca0fcd3fd28ef579f4435b8bad3b7c87f04 (diff)
make ob_state a function so it cant be changed outside of openbox.c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/placement/history.c2
-rw-r--r--plugins/placement/placement.c2
2 files changed, 2 insertions, 2 deletions
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));