(svn r25292) -Feature: Save stickyness of windows when Ctrl+Clicking the sticky button.

This commit is contained in:
frosch
2013-05-26 19:27:44 +00:00
parent b172ed3578
commit b734305ce2
3 changed files with 25 additions and 1 deletions

View File

@@ -181,6 +181,8 @@ struct WindowDesc : ZeroedMemoryAllocator {
const NWidgetPart *nwid_parts; ///< Nested widget parts describing the window.
int16 nwid_length; ///< Length of the #nwid_parts array.
bool pref_sticky; ///< Preferred stickyness.
static void LoadFromConfig();
static void SaveToConfig();
};
@@ -508,6 +510,8 @@ public:
*/
virtual void OnInit() { }
virtual void ApplyDefaults();
/**
* Compute the initial position of the window.
* @param sm_width Smallest width of the window.