From: Dana Jansens Date: Mon, 22 Sep 2003 05:38:44 +0000 (+0000) Subject: ignore non-visible windows too X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=27eb1a773609fe472d17611c7886c0da04e88d4d;p=chaz%2Fopenbox ignore non-visible windows too --- diff --git a/openbox/place.c b/openbox/place.c index 967b32d3..3edb82c9 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -193,10 +193,10 @@ typedef enum SMART_FOCUSED } ObSmartType; -#define SMART_IGNORE(placer, c) \ - (placer == c || c->shaded || !client_normal(c) || \ - (c->desktop != DESKTOP_ALL && \ - c->desktop != (placer->desktop == DESKTOP_ALL ? \ +#define SMART_IGNORE(placer, c) \ + (placer == c || !c->visible || c->shaded || !client_normal(c) || \ + (c->desktop != DESKTOP_ALL && \ + c->desktop != (placer->desktop == DESKTOP_ALL ? \ screen_desktop : placer->desktop))) static gboolean place_smart(ObClient *client, gint *x, gint *y,