stop using literal 500 as a window timeout

This commit is contained in:
Andrzej Rybczak
2015-05-19 19:15:09 +02:00
parent 125ae9b505
commit 7c15dd954e
4 changed files with 7 additions and 5 deletions

View File

@@ -101,6 +101,8 @@ struct BaseScreen
/// Unlocks a screen, ie. hides merged window (if there is one set).
static void unlock();
const static int defaultWindowTimeout = 500;
protected:
/// Gets X offset and width of current screen to be used eg. in resize() function.
/// @param adjust_locked_screen indicates whether this function should
@@ -187,9 +189,9 @@ public:
}
/// @return timeout parameter used for the screen (in ms)
/// @default 500
/// @default defaultWindowTimeout
virtual int windowTimeout() OVERRIDE {
return 500;
return defaultWindowTimeout;
}
/// Invoked after there was one of mouse buttons pressed