summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
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));