]> Dogcows Code - chaz/openbox/blobdiff - plugins/placement/placement.c
make the labels one bigger than the text on the top and bottom
[chaz/openbox] / plugins / placement / placement.c
index d6011132f12014ff151b05e0a3b6bbda9d21ab41..2307db2ff4cf36d74c3e2d28789bf326d06cd92e 100644 (file)
@@ -8,12 +8,18 @@
 
 gboolean history = TRUE;
 
+void plugin_setup_config()
+{
+}
+
 static void place_random(Client *c)
 {
     int l, r, t, b;
     int x, y;
     Rect *area;
 
+    if (ob_state == State_Starting) return;
+
     area = screen_area(c->desktop);
 
     l = area->x;
@@ -35,7 +41,8 @@ static void event(ObEvent *e, void *foo)
 {
     g_assert(e->type == Event_Client_New);
 
-    if (ob_state == State_Starting) return;
+    /* requested a position */
+    if (e->data.c.client->positioned) return;
 
     if (!place_history(e->data.c.client))
         place_random(e->data.c.client);
This page took 0.025096 seconds and 4 git commands to generate.