projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a883721
)
try place under the mouse when theres no free space? maybe thats dumb
author
Dana Jansens
<danakj@orodu.net>
Tue, 12 Jun 2007 04:12:54 +0000
(
04:12
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 12 Jun 2007 04:12:54 +0000
(
04:12
+0000)
openbox/place.c
patch
|
blob
|
history
diff --git
a/openbox/place.c
b/openbox/place.c
index
66f367d
..
6c81df6
100644
(file)
--- a/
openbox/place.c
+++ b/
openbox/place.c
@@
-328,8
+328,9
@@
static gboolean place_under_mouse(ObClient *client, gint *x, gint *y)
gint px, py;
Rect *area;
+ if (!screen_pointer_pos(&px, &py))
+ return FALSE;
area = pick_pointer_head(client);
- screen_pointer_pos(&px, &py);
l = area->x;
t = area->y;
@@
-447,6
+448,7
@@
gboolean place_client(ObClient *client, gint *x, gint *y,
(config_place_policy == OB_PLACE_POLICY_MOUSE &&
place_under_mouse(client, x, y)) ||
place_nooverlap(client, x, y) ||
+ place_under_mouse(client, x, y) ||
place_random(client, x, y);
g_assert(ret);