From 873abef315f5d947b864428891381bff539c5869 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Tue, 30 Mar 2010 20:07:19 +0100 Subject: Cygwin/X: Add -resize command line option Add -resize command line option to configure how native window sizing frame is used. In additions to the existing fixed and scrollbars modes, add a new mode to allow framebuffer to be resized using native window frame Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison Tested-by: Colin Harrison --- hw/xwin/win.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'hw/xwin/win.h') diff --git a/hw/xwin/win.h b/hw/xwin/win.h index ceb001cd6..0df1d27fc 100644 --- a/hw/xwin/win.h +++ b/hw/xwin/win.h @@ -378,6 +378,15 @@ typedef struct { miPointerSpriteFuncPtr spriteFuncs; } winCursorRec; +/* + * Resize modes + */ +typedef enum { + notAllowed, + resizeWithScrollbars, + resizeWithRandr +} winResizeMode; + /* * Screen information structure that we need before privates are available * in the server startup sequence. @@ -439,7 +448,7 @@ typedef struct #endif Bool fMultipleMonitors; Bool fLessPointer; - Bool fScrollbars; + winResizeMode iResizeMode; Bool fNoTrayIcon; int iE3BTimeout; /* Windows (Alt+F4) and Unix (Ctrl+Alt+Backspace) Killkey */ -- cgit v1.2.3