Fix fullscreen for flash videos
authorAndy Spencer <andy753421@gmail.com>
Sun, 2 Sep 2012 03:07:54 +0000 (03:07 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 2 Sep 2012 03:07:54 +0000 (03:07 +0000)
This fixes fullscreen on create for some windows

sys-x11.c

index 1e35845db4403b101442366696f394f4dbfec301..95672d0ce587477d80cb78caf4873f5d22a6ea12 100644 (file)
--- a/sys-x11.c
+++ b/sys-x11.c
@@ -593,6 +593,13 @@ void sys_show(win_t *win, state_t state)
                }
                XSetWindowBorderWidth(win->sys->dpy, win->sys->xid, 0);
                XMapWindow(win->sys->dpy, win->sys->xid);
+               XConfigureWindow(win->sys->dpy, win->sys->xid,
+                       CWX|CWY|CWWidth|CWHeight, &(XWindowChanges) {
+                               .x      = win->x,
+                               .y      = win->y,
+                               .width  = win->w,
+                               .height = win->h,
+               });
                XMoveResizeWindow(win->sys->dpy, win->sys->xid,
                        screen->x - screen->sys->strut.left,
                        screen->y - screen->sys->strut.top,