From: Dana Jansens Date: Mon, 4 Jun 2007 19:06:09 +0000 (+0000) Subject: dont let windows place over menu or toolbars if they don't have a parent X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=c0aa4f155b2139406693e86748d085981b19167b;p=chaz%2Fopenbox dont let windows place over menu or toolbars if they don't have a parent --- diff --git a/openbox/place.c b/openbox/place.c index bfe27e28..ea131bea 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -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)))