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:
52e7547
)
no center in the first smart-place
author
Dana Jansens
<danakj@orodu.net>
Mon, 15 Sep 2003 05:05:58 +0000
(
05:05
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 15 Sep 2003 05:05:58 +0000
(
05:05
+0000)
openbox/place.c
patch
|
blob
|
history
diff --git
a/openbox/place.c
b/openbox/place.c
index
27df69f
..
32d9fa3
100644
(file)
--- a/
openbox/place.c
+++ b/
openbox/place.c
@@
-162,8
+162,13
@@
static gboolean place_smart(ObClient *client, gint *x, gint *y,
if (r->width >= client->frame->area.width &&
r->height >= client->frame->area.height) {
ret = TRUE;
- *x = r->x + (r->width - client->frame->area.width) / 2;
- *y = r->y + (r->height - client->frame->area.height) / 2;
+ if (only_focused) {
+ *x = r->x + (r->width - client->frame->area.width) / 2;
+ *y = r->y + (r->height - client->frame->area.height) / 2;
+ } else {
+ *x = r->x;
+ *y = r->y;
+ }
}
}