dont let windows place over menu or toolbars if they don't have a parent

This commit is contained in:
Dana Jansens 2007-06-04 19:06:09 +00:00
parent 0a5ac0c8ef
commit c0aa4f155b

View file

@ -270,7 +270,8 @@ typedef enum
#define SMART_IGNORE(placer, c) \
(placer == c || c->shaded || !c->frame->visible || \
c->type == OB_CLIENT_TYPE_SPLASH || c->type == OB_CLIENT_TYPE_DESKTOP || \
c->type == OB_CLIENT_TYPE_MENU || c->type == OB_CLIENT_TYPE_TOOLBAR || \
((c->type == OB_CLIENT_TYPE_MENU || c->type == OB_CLIENT_TYPE_TOOLBAR) &&\
client_has_parent(c)) || \
(c->desktop != DESKTOP_ALL && \
c->desktop != (placer->desktop == DESKTOP_ALL ? \
screen_desktop : placer->desktop)))