aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-events
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-02-28 23:29:01 -0500
committerKen Moore <ken@ixsystems.com>2018-02-28 23:29:01 -0500
commitc67e9b998ee8078065d53823ec790999b9cce62f (patch)
treec711aa77e11d7a4d99c06997deb7b3cb7d66386d /src-qt5/core/lumina-desktop-unified/src-events
parentSome work on Lumina 2. (diff)
downloadlumina-c67e9b998ee8078065d53823ec790999b9cce62f.tar.gz
lumina-c67e9b998ee8078065d53823ec790999b9cce62f.tar.bz2
lumina-c67e9b998ee8078065d53823ec790999b9cce62f.zip
Start writing up research on how to do the keyboard event listening.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-events')
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp9
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp b/src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp
index 9e2e7bba..b9c1b6ef 100644
--- a/src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp
+++ b/src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp
@@ -274,6 +274,15 @@ void NativeWindowSystem::stop(){
}
+void NativeWindowSystem::RegisterEventShortcut(Qt::Key key, bool set){
+//RegisterEventShortcut( , set);
+}
+
+void NativeWindowSystem::RegisterEventShortcut(int keycode, bool set){
+ //xcb_input_grab_device_button_checked
+ //xcb_input_xi_passive_grab_device_unchecked
+}
+
// === PRIVATE ===
NativeWindowObject* NativeWindowSystem::findWindow(WId id, bool checkRelated){
//qDebug() << "Find Window:" << id;
diff --git a/src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.h b/src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.h
index 74849cf4..0b6cd67e 100644
--- a/src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.h
+++ b/src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.h
@@ -79,6 +79,8 @@ public:
//Small simplification functions
static Qt::Key KeycodeToQt(int keycode);
static NativeWindowSystem::MouseButton MouseToQt(int button);
+ void RegisterEventShortcut(Qt::Key key, bool set);
+ void RegisterEventShortcut(int keycode, bool set);
void raiseWindow(NativeWindowObject *win);
void lowerWindow(NativeWindowObject *win);
bgstack15