Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-02-07 18:41:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-02-07 18:41:08 +0400
commit3a31e1ef27d48ed2841ae863754bf17d954ece35 (patch)
treecbacc0541249233334d140faf6a3d24ff4414044 /source/blender/windowmanager/wm_window.h
parent95bca1c6bc379c073c0d933d72aeff7bcfdd2563 (diff)
start blender maximized on X11 - finding screen limits taking window borders, title bar, panels & multi-monitor is quite involved - without this size if often wrong.
For sizes outside the screen bounds many window managers will ignore the requested size. Also opening maximized was default with 2.49.
Diffstat (limited to 'source/blender/windowmanager/wm_window.h')
-rw-r--r--source/blender/windowmanager/wm_window.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/windowmanager/wm_window.h b/source/blender/windowmanager/wm_window.h
index 739ead27bdb..c4c64ed429f 100644
--- a/source/blender/windowmanager/wm_window.h
+++ b/source/blender/windowmanager/wm_window.h
@@ -69,5 +69,11 @@ void wm_window_testbreak (void);
int wm_window_duplicate_exec(bContext *C, struct wmOperator *op);
int wm_window_fullscreen_toggle_exec(bContext *C, struct wmOperator *op);
+/* Initial (unmaximized) size to start with for
+ * systems that can't find it for themselves (X11).
+ * Clamped by real desktop limits */
+#define WM_WIN_INIT_SIZE_X 1800
+#define WM_WIN_INIT_SIZE_Y 1000
+
#endif /* __WM_WINDOW_H__ */