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:
4669203
)
fix move to center on xinerama
author
Dana Jansens
<danakj@orodu.net>
Wed, 13 Jun 2007 23:34:48 +0000
(23:34 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 13 Jun 2007 23:34:48 +0000
(23:34 +0000)
openbox/action.c
patch
|
blob
|
history
diff --git
a/openbox/action.c
b/openbox/action.c
index
7c79969
..
7bc8ab6
100644
(file)
--- a/
openbox/action.c
+++ b/
openbox/action.c
@@
-1462,8
+1462,8
@@
void action_move_to_center(union ActionData *data)
Rect *area;
area = screen_area(c->desktop, client_monitor(c), NULL);
client_action_start(data);
- client_move(c, area->width / 2 - c->area.width / 2,
- area->height / 2 - c->area.height / 2);
+ client_move(c, area->
x + area->
width / 2 - c->area.width / 2,
+ area->
y + area->
height / 2 - c->area.height / 2);
client_action_end(data, FALSE);
g_free(area);
}