X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fplacement%2Fplacement.c;h=83f0e77e22f0671a5dd9bffc9868c03a41775f94;hb=dbaa0c15112664f2e7bf82dd245bcf9d325b01c1;hp=e497505520d7d7d87803ef8516eff1845d98911a;hpb=985738469e1be7886b7c84a1702fc4070f254eb1;p=chaz%2Fopenbox diff --git a/plugins/placement/placement.c b/plugins/placement/placement.c index e4975055..83f0e77e 100644 --- a/plugins/placement/placement.c +++ b/plugins/placement/placement.c @@ -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;