summaryrefslogtreecommitdiff
path: root/hw/xwin/win.h
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2010-03-30 20:07:19 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2011-01-19 14:02:22 +0000
commit873abef315f5d947b864428891381bff539c5869 (patch)
tree7b44118d06133bf25ba4de34f1be1947d769a9bb /hw/xwin/win.h
parent46c57788539d8a5f0246528b4f88ad4ed6d867d1 (diff)
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 <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Tested-by: Colin Harrison <colin.harrison@virgin.net>
Diffstat (limited to 'hw/xwin/win.h')
-rw-r--r--hw/xwin/win.h11
1 files changed, 10 insertions, 1 deletions
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
@@ -379,6 +379,15 @@ typedef struct {
} 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 */