From: Dana Jansens Date: Fri, 21 Mar 2003 10:29:30 +0000 (+0000) Subject: dont reposition windows who know what they want X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=cd1694cd1c0b1d5d769a5e9d01dfa41b9a431bb0;p=chaz%2Fopenbox dont reposition windows who know what they want --- diff --git a/plugins/placement/placement.c b/plugins/placement/placement.c index d6011132..8a5d995a 100644 --- a/plugins/placement/placement.c +++ b/plugins/placement/placement.c @@ -37,6 +37,9 @@ static void event(ObEvent *e, void *foo) if (ob_state == State_Starting) return; + /* requested a position */ + if (e->data.c.client->positioned) return; + if (!place_history(e->data.c.client)) place_random(e->data.c.client); }