X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fplacement%2Fplacement.c;fp=plugins%2Fplacement%2Fplacement.c;h=5f962e47c2bf74823994a9799f5217d16aa5c587;hb=34e819738b344a992a1dbfd6cdd165e0c8ddb3a9;hp=889168b941f49e68aff6c8b33c865fff10b4af34;hpb=d0abbec2e522119c0865f668b094c60a1712e24f;p=chaz%2Fopenbox diff --git a/plugins/placement/placement.c b/plugins/placement/placement.c index 889168b9..5f962e47 100644 --- a/plugins/placement/placement.c +++ b/plugins/placement/placement.c @@ -32,7 +32,8 @@ static void place_random(Client *c) if (ob_state == State_Starting) return; - area = screen_area(c->desktop); + area = screen_area_xinerama(c->desktop, + g_random_int_range(0, screen_num_xin_areas)); l = area->x; t = area->y;