From 63118697eed48dfebe1ec100610976cbff52d21c Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Tue, 5 Mar 2013 09:08:33 -0500 Subject: Automatically set a default window size if unset This resolves problems when the window manager does not set a default size. I noticed this while using KDE3's KWin. Previously it went unfixed because my main window manger always assigns a size. This should resolve the problem. * Added DEFAULT_WINDOW_WIDTH and DEFAULT_WINDOW_HEIGHT * DEFAULT_WINDOW_WIDTH = 600 * DEFAULT_WINDOW_HEIGHT = 800 * If either height or width is missing from the svte configuration in the users directory, use the defaults. --- defaults.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'defaults.h') diff --git a/defaults.h b/defaults.h index 3e36bf8..0cad826 100644 --- a/defaults.h +++ b/defaults.h @@ -42,6 +42,14 @@ #define DEFAULT_ALLOW_BOLD TRUE #endif +#ifndef DEFAULT_WINDOW_HEIGHT +#define DEFAULT_WINDOW_HEIGHT 800 +#endif + +#ifndef DEFAULT_WINDOW_WIDTH +#define DEFAULT_WINDOW_WIDTH 600 +#endif + #ifndef DEFAULT_NUM_SCROLLBACK_LINES #define DEFAULT_NUM_SCROLLBACK_LINES -1 #endif -- cgit v1.2.3