Commits

Jesus Galan Lopez committed 32e58ad

wsys: x11: resize after re-mapping when going fullscreen

Comments (0)

Files changed (1)

 	}else{
 		xconn.restore = rectaddpt(w->screenr, w->orig);
 		/* xconn.fullscreen must be nil when xresizewindow is called */
-		xresizewindow(w, xconn.screenrect);
 		xconn.fullscreen = w;
 		attr.override_redirect = True;
 		XChangeWindowAttributes(xconn.display, xw->drawable, CWOverrideRedirect, &attr);
 		XUnmapWindow(xconn.display, xw->drawable);
 		XMapRaised(xconn.display, xw->drawable);
+		xresizewindow(w, xconn.screenrect);
 		XGrabKeyboard(xconn.display, xw->drawable, False, GrabModeAsync, GrabModeAsync, CurrentTime);
 	}
 	writemouse(w, m, 1);