always place windows on the screen with the mouse cursor in xinerama, throw some code around (try2)
This commit is contained in:
parent
29da19bd85
commit
d04b68f8bc
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
||||||
static Rect *pick_head(ObClient *c)
|
static Rect *pick_head(ObClient *c)
|
||||||
{
|
{
|
||||||
Rect *area = NULL;
|
Rect *area = NULL;
|
||||||
gint i;
|
gint i, px, py;
|
||||||
|
|
||||||
/* try direct parent first */
|
/* try direct parent first */
|
||||||
if (c->transient_for && c->transient_for != OB_TRAN_GROUP) {
|
if (c->transient_for && c->transient_for != OB_TRAN_GROUP) {
|
||||||
|
@ -326,6 +326,7 @@ static gboolean place_under_mouse(ObClient *client, gint *x, gint *y)
|
||||||
Rect *area;
|
Rect *area;
|
||||||
|
|
||||||
area = pick_head(client);
|
area = pick_head(client);
|
||||||
|
screen_pointer_pos(&px, &py);
|
||||||
|
|
||||||
l = area->x;
|
l = area->x;
|
||||||
t = area->y;
|
t = area->y;
|
||||||
|
@ -343,7 +344,6 @@ static gboolean place_under_mouse(ObClient *client, gint *x, gint *y)
|
||||||
static gboolean place_per_app_setting(ObClient *client, gint *x, gint *y,
|
static gboolean place_per_app_setting(ObClient *client, gint *x, gint *y,
|
||||||
ObAppSettings *settings)
|
ObAppSettings *settings)
|
||||||
{
|
{
|
||||||
gint px, py, i;
|
|
||||||
Rect *screen;
|
Rect *screen;
|
||||||
|
|
||||||
if (!settings || (settings && !settings->pos_given))
|
if (!settings || (settings && !settings->pos_given))
|
||||||
|
|
Loading…
Reference in a new issue