Bugfix: ensure floating windows don’t drop out of fullscreen when restarting

fixes #1263
This commit is contained in:
Michael Stapelberg
2014-06-13 22:26:06 +02:00
parent 35f15f855d
commit e69fcbb17b
2 changed files with 50 additions and 1 deletions

View File

@ -328,8 +328,11 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
fs = con_get_fullscreen_con(croot, CF_GLOBAL);
if (xcb_reply_contains_atom(state_reply, A__NET_WM_STATE_FULLSCREEN)) {
/* If this window is already fullscreen (after restarting!), skip
* toggling fullscreen, that would drop it out of fullscreen mode. */
if (fs != nc)
con_toggle_fullscreen(nc, CF_OUTPUT);
fs = NULL;
con_toggle_fullscreen(nc, CF_OUTPUT);
}
bool set_focus = false;