X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fplacement%2Fplacement.c;h=5f962e47c2bf74823994a9799f5217d16aa5c587;hb=1052ca3f744bdad473b6e4028999375fb11d220b;hp=889168b941f49e68aff6c8b33c865fff10b4af34;hpb=d1e355de2c6aae38cea3cdc0e0b902ea2b194e86;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;