Merge branch 'fix-fullscreen-confreq'

This commit is contained in:
Michael Stapelberg 2012-09-04 20:21:22 +02:00
commit 562c53d66c

View File

@ -374,7 +374,19 @@ static void handle_configure_request(xcb_configure_request_event_t *event) {
} }
DLOG("Configure request!\n"); DLOG("Configure request!\n");
if (con_is_floating(con) && con_is_leaf(con)) {
Con *workspace = con_get_workspace(con),
*fullscreen = NULL;
/* There might not be a corresponding workspace for dock cons, therefore we
* have to be careful here. */
if (workspace) {
fullscreen = con_get_fullscreen_con(workspace, CF_OUTPUT);
if (!fullscreen)
fullscreen = con_get_fullscreen_con(workspace, CF_GLOBAL);
}
if (fullscreen != con && con_is_floating(con) && con_is_leaf(con)) {
/* find the height for the decorations */ /* find the height for the decorations */
int deco_height = config.font.height + 5; int deco_height = config.font.height + 5;
/* we actually need to apply the size/position changes to the *parent* /* we actually need to apply the size/position changes to the *parent*