-rw-r--r-- | core/launcher/serverapp.cpp | 4 |
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 @@ -356,10 +356,10 @@ 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 ) } |