diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2007-02-05 21:19:35 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2007-02-05 21:19:35 +0000 |
| commit | 1aa9c7e95ef3da351a7459ed79cacd439db353e8 (patch) | |
| tree | 7b2b0123cdbf568f30094f9fcfaccbcc91d7a8aa /openbox/place.c | |
| parent | d04b68f8bc2bf3723ae19b05fff2ca9a0e9d4ca6 (diff) | |
always place windows on the screen with the mouse cursor in xinerama, throw some code around (try3)
Diffstat (limited to 'openbox/place.c')
| -rw-r--r-- | openbox/place.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/place.c b/openbox/place.c index ad17fbd5..b56998b2 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -61,16 +61,16 @@ static Rect *pick_head(ObClient *c) screen_pointer_pos(&px, &py); for (i = 0; i < screen_num_monitors; i++) { - area = screen_area_monitor(client->desktop, i); + area = screen_area_monitor(c->desktop, i); if (RECT_CONTAINS(*area, px, py)) break; } if (i == screen_num_monitors) - area = screen_area_monitor(client->desktop, 0); + area = screen_area_monitor(c->desktop, 0); /* Last resort */ if (!area) - area = screen_area_monitor(client->desktop, + area = screen_area_monitor(c->desktop, g_random_int_range(0, screen_num_monitors)); return area; |
