diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-22 05:38:44 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-22 05:38:44 +0000 |
| commit | 27eb1a773609fe472d17611c7886c0da04e88d4d (patch) | |
| tree | b187d31a9b1fa6f302c0f09a6ae311dd2ccaca46 | |
| parent | 74f36c587ca5ae456434115ae28e3e07bf8a970c (diff) | |
ignore non-visible windows too
| -rw-r--r-- | openbox/place.c | 8 |
1 files changed, 4 insertions, 4 deletions
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, |
