try place under the mouse when theres no free space? maybe thats dumb
This commit is contained in:
parent
a883721bf7
commit
881a8647d2
1 changed files with 3 additions and 1 deletions
|
@ -328,8 +328,9 @@ static gboolean place_under_mouse(ObClient *client, gint *x, gint *y)
|
||||||
gint px, py;
|
gint px, py;
|
||||||
Rect *area;
|
Rect *area;
|
||||||
|
|
||||||
|
if (!screen_pointer_pos(&px, &py))
|
||||||
|
return FALSE;
|
||||||
area = pick_pointer_head(client);
|
area = pick_pointer_head(client);
|
||||||
screen_pointer_pos(&px, &py);
|
|
||||||
|
|
||||||
l = area->x;
|
l = area->x;
|
||||||
t = area->y;
|
t = area->y;
|
||||||
|
@ -447,6 +448,7 @@ gboolean place_client(ObClient *client, gint *x, gint *y,
|
||||||
(config_place_policy == OB_PLACE_POLICY_MOUSE &&
|
(config_place_policy == OB_PLACE_POLICY_MOUSE &&
|
||||||
place_under_mouse(client, x, y)) ||
|
place_under_mouse(client, x, y)) ||
|
||||||
place_nooverlap(client, x, y) ||
|
place_nooverlap(client, x, y) ||
|
||||||
|
place_under_mouse(client, x, y) ||
|
||||||
place_random(client, x, y);
|
place_random(client, x, y);
|
||||||
g_assert(ret);
|
g_assert(ret);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue