xserver-multidpi/miext
Jan Hauffa ea191e1679 rootless: Adjust the frame size of the native root window in RootlessResizeWindow
If the native root window isn't resized as well, we will likely crash the
next time we draw to the root.  On OS X, this can be seen by:

1) Put the display preferences in the menu bar and set X11's preferences so you
   can access the menu bar in fullscreen mode
2) Set the resolution of your screen lower than normal.
3) Start X11 in fullscreen mode.  The root window will cover the screen as
   expected.
4) Use the menu bar to increase the resolution of the display.  The root
   window will now cover the old area and not the full screen, but
   'xwininfo -root' will report the full width.
5) Run 'xsetroot -solid red', and we have the crash you mention above.

Leaving/entering fullscreen after #4 will fix the problem.  This is because the
WINREC is erased when we leave fullscreen mode and it is recreated upon
re-entry:

RootlessUpdateRooted(FALSE)
    RootlessDisableRoot(screenInfo.screens[0])
        RootlessDestroyFrame (pRoot, winRec);
RootlessUpdateRooted(TRUE)
    RootlessEnableRoot(screenInfo.screens[0])
        RootlessEnsureFrame(screenInfo.screens[0]->pRoot)
            creates a new WINREC...

Signed-off-by: Jan Hauffa <hauffa@in.tum.de>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Acked-By: Jon TURNEY <jon.turney@dronecode.org.uk>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit 95756f410c)
2010-07-19 22:31:20 -07:00
..
cw Remove a bunch of useless casts. 2009-01-22 02:11:16 -05:00
damage os: Prevent core dump from being truncated. 2010-02-17 23:20:52 -08:00
rootless rootless: Adjust the frame size of the native root window in RootlessResizeWindow 2010-07-19 22:31:20 -07:00
shadow [shadow] Store the closure in the buffer 2009-01-28 17:33:25 -05:00
Makefile.am Cygwin/X: Only try to build rootless extension if multiwindow extwm mode is being built 2009-07-29 17:05:19 +01:00