]> Dogcows Code - chaz/openbox/commitdiff
pick the xinerama head of the parent if possible
authorDana Jansens <danakj@orodu.net>
Tue, 5 Aug 2003 18:59:39 +0000 (18:59 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 5 Aug 2003 18:59:39 +0000 (18:59 +0000)
plugins/placement/placement.c

index e497505520d7d7d87803ef8516eff1845d98911a..83f0e77e22f0671a5dd9bffc9868c03a41775f94 100644 (file)
@@ -28,6 +28,12 @@ void plugin_setup_config()
 
 static Rect* pick_head(ObClient *c)
 {
+    /* try direct parent first */
+    if (c->transient_for && c->transient_for != TRAN_GROUP) {
+        return screen_area_monitor(c->desktop,
+                                   client_monitor(c->transient_for));
+    }
+
     /* more than one guy in his group (more than just him) */
     if (c->group && c->group->members->next) {
         GSList *it;
This page took 0.026735 seconds and 4 git commands to generate.