From: Mikael Magnusson Date: Tue, 12 Sep 2006 20:26:00 +0000 (+0000) Subject: dont use the keepBorder option for mwm hinted windows after all, but do honor the... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=b9532883a237fa8e04b7e6d1917e22f7518bbb19;p=chaz%2Fopenbox dont use the keepBorder option for mwm hinted windows after all, but do honor the mwm_decor_border hint instead --- diff --git a/openbox/client.c b/openbox/client.c index 457a0f6a..47417688 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1303,9 +1303,12 @@ void client_setup_decor_and_functions(ObClient *self) if (! ((self->mwmhints.decorations & OB_MWM_DECOR_HANDLE) || (self->mwmhints.decorations & OB_MWM_DECOR_TITLE))) /* if the mwm hints request no handle or title, then all - decorations are disabled */ - self->decorations = config_theme_keepborder ? - self->decorations & OB_FRAME_DECOR_BORDER : 0; + decorations are disabled, but keep the border if that's + specified */ + if (self->mwmhints.decorations & OB_MWM_DECOR_BORDER) + self->decorations = OB_FRAME_DECOR_BORDER; + else + self->decorations = 0; } }