]> Dogcows Code - chaz/openbox/blobdiff - plugins/placement/history.c
make ob_state a function so it cant be changed outside of openbox.c
[chaz/openbox] / plugins / placement / history.c
index f2b4ea632a77790eadb57eb4592f55e91ff12c1d..eeff1f63f39a976cf2b143e2a7dfe5fe20647a39 100644 (file)
@@ -49,7 +49,7 @@ static struct HistoryItem *history_find(const char *name, const char *class,
     return NULL;
 }
 
-gboolean place_history(Client *c)
+gboolean place_history(ObClient *c)
 {
     struct HistoryItem *hi;
     int x, y, w, h;
@@ -58,7 +58,7 @@ gboolean place_history(Client *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) {
@@ -90,7 +90,7 @@ gboolean place_history(Client *c)
     return FALSE;
 }
 
-static void set_history(Client *c)
+static void set_history(ObClient *c)
 {
     struct HistoryItem *hi;
 
This page took 0.020561 seconds and 4 git commands to generate.