summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2007-02-05 21:19:04 +0000
committerMikael Magnusson <mikachu@comhem.se>2007-02-05 21:19:04 +0000
commitd04b68f8bc2bf3723ae19b05fff2ca9a0e9d4ca6 (patch)
treeb07f29c263a53e598318487a88ec81709b6a9599 /openbox
parent29da19bd858d0e97dc90259d242f0ee26131b9a6 (diff)
always place windows on the screen with the mouse cursor in xinerama, throw some code around (try2)
Diffstat (limited to 'openbox')
-rw-r--r--openbox/place.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/place.c b/openbox/place.c
index ff45a4dc..ad17fbd5 100644
--- a/openbox/place.c
+++ b/openbox/place.c
@@ -27,7 +27,7 @@
static Rect *pick_head(ObClient *c)
{
Rect *area = NULL;
- gint i;
+ gint i, px, py;
/* try direct parent first */
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;
area = pick_head(client);
+ screen_pointer_pos(&px, &py);
l = area->x;
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,
ObAppSettings *settings)
{
- gint px, py, i;
Rect *screen;
if (!settings || (settings && !settings->pos_given))