summaryrefslogtreecommitdiff
path: root/core/launcher/serverapp.cpp
Side-by-side diff
Diffstat (limited to 'core/launcher/serverapp.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/serverapp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/launcher/serverapp.cpp b/core/launcher/serverapp.cpp
index a2302d8..66cc788 100644
--- a/core/launcher/serverapp.cpp
+++ b/core/launcher/serverapp.cpp
@@ -357,8 +357,8 @@ ServerApplication::ServerApplication( int& argc, char **argv, Type t )
apmTimeout();
grabKeyboard();
- /* make sure the event filter is installed */
- const ODeviceButton* but = ODevice::inst()->buttonForKeycode( -1 );
+ /* make sure the event filter is installed */ /* std::limits<short>::max() when you've stdc++ */
+ const ODeviceButton* but = ODevice::inst()->buttonForKeycode( SHRT_MAX );
Q_CONST_UNUSED( but )
}