Merge pull request #4600 from andreesteve/xfullscreen
authorakallabeth <akallabeth@users.noreply.github.com>
Wed, 17 Oct 2018 15:27:29 +0000 (17:27 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Oct 2018 15:27:29 +0000 (17:27 +0200)
X11: Fix fullscreen toggle

1  2 
client/X11/xf_client.c
client/X11/xf_monitor.c
client/X11/xf_window.c

Simple merge
Simple merge
@@@ -158,12 -153,12 +158,15 @@@ void xf_SetWindowFullscreen(xfContext* 
        int startX, startY;
        UINT32 width = window->width;
        UINT32 height = window->height;
+       /* xfc->decorations is set by caller depending on settings and whether it is fullscreen or not */
        window->decorations = xfc->decorations;
+       /* show/hide decorations (e.g. title bar) as guided by xfc->decorations */
        xf_SetWindowDecorations(xfc, window->handle, window->decorations);
+       DEBUG_X11(TAG, "X window decoration set to %d", (int)window->decorations);
  
 +      if (xfc->floatbar)
 +              xf_floatbar_toggle_visibility(xfc, fullscreen);
 +
        if (fullscreen)
        {
                xfc->savedWidth = xfc->window->width;