diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-05 18:59:39 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-05 18:59:39 +0000 |
| commit | dbaa0c15112664f2e7bf82dd245bcf9d325b01c1 (patch) | |
| tree | c427088aae2af5671ed84165ef8a0f493b40e051 /plugins/placement/placement.c | |
| parent | 985738469e1be7886b7c84a1702fc4070f254eb1 (diff) | |
pick the xinerama head of the parent if possible
Diffstat (limited to 'plugins/placement/placement.c')
| -rw-r--r-- | plugins/placement/placement.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |
