Changeset View
Changeset View
Standalone View
Standalone View
libkhotkeysprivate/shortcuts_handler.cpp
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Line(s) | 139 | static bool xtest() | |||
---|---|---|---|---|---|
145 | xtest_available = | 145 | xtest_available = | ||
146 | ( XTestQueryExtension( QX11Info::display(), &dummy1, &dummy2, &dummy3, &dummy4 ) == True ); | 146 | ( XTestQueryExtension( QX11Info::display(), &dummy1, &dummy2, &dummy3, &dummy4 ) == True ); | ||
147 | return xtest_available; | 147 | return xtest_available; | ||
148 | } | 148 | } | ||
149 | #endif | 149 | #endif | ||
150 | 150 | | |||
151 | bool ShortcutsHandler::send_macro_key( const QKeySequence &key, Window window_P ) | 151 | bool ShortcutsHandler::send_macro_key( const QKeySequence &key, Window window_P ) | ||
152 | { | 152 | { | ||
153 | qDebug() << key << key.count() << window_P; | | |||
154 | | ||||
155 | if (key.isEmpty()) | 153 | if (key.isEmpty()) | ||
156 | return false; | 154 | return false; | ||
157 | 155 | | |||
158 | unsigned int keysym = key[0]; | 156 | unsigned int keysym = key[0]; | ||
159 | int x_keycode; | 157 | int x_keycode; | ||
160 | KKeyServer::keyQtToCodeX(keysym, &x_keycode); | 158 | KKeyServer::keyQtToCodeX(keysym, &x_keycode); | ||
161 | if( x_keycode == NoSymbol ) | 159 | if( x_keycode == NoSymbol ) | ||
162 | return false; | 160 | return false; | ||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |