(svn r25295) -Feature: Allow saving window sizes as default sizes.

This commit is contained in:
frosch
2013-05-26 19:30:31 +00:00
parent 4e4e635916
commit 05c472f08a
3 changed files with 39 additions and 13 deletions

View File

@@ -189,6 +189,11 @@ struct WindowDesc : ZeroedMemoryAllocator {
int16 nwid_length; ///< Length of the #nwid_parts array.
bool pref_sticky; ///< Preferred stickyness.
int16 pref_width; ///< User-preferred width of the window. Zero if unset.
int16 pref_height; ///< User-preferred height of the window. Zero if unset.
int16 GetDefaultWidth() const { return this->pref_width != 0 ? this->pref_width : this->default_width; }
int16 GetDefaultHeight() const { return this->pref_height != 0 ? this->pref_height : this->default_height; }
static void LoadFromConfig();
static void SaveToConfig();