projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9857384
)
pick the xinerama head of the parent if possible
author
Dana Jansens
<danakj@orodu.net>
Tue, 5 Aug 2003 18:59:39 +0000
(18:59 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 5 Aug 2003 18:59:39 +0000
(18:59 +0000)
plugins/placement/placement.c
patch
|
blob
|
history
diff --git
a/plugins/placement/placement.c
b/plugins/placement/placement.c
index
e497505
..
83f0e77
100644
(file)
--- 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;