From 7c464294cc114d7991244a1fd7d65697d91c8bd6 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 6 Mar 2017 22:46:38 -0800 Subject: Add a bunch more of the XCB guts to the NativeWindowSystem (Title, ShortTitle, Icon) --- src-qt5/core/libLumina/NativeWindowSystem.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src-qt5/core/libLumina/NativeWindowSystem.h') diff --git a/src-qt5/core/libLumina/NativeWindowSystem.h b/src-qt5/core/libLumina/NativeWindowSystem.h index 2f89b42c..58f623c3 100644 --- a/src-qt5/core/libLumina/NativeWindowSystem.h +++ b/src-qt5/core/libLumina/NativeWindowSystem.h @@ -45,6 +45,7 @@ private: public: enum Property{ None, CurrentWorkspace, Workspaces, VirtualRoots, WorkAreas }; + enum MouseButton{NoButton, LeftButton, RightButton, MidButton, BackButton, ForwardButton, TaskButton, WheelUp, WheelDown, WheelLeft, WheelRight}; NativeWindowSystem(); ~NativeWindowSystem(); @@ -57,6 +58,10 @@ public: QList currentWindows(){ return NWindows; } QList currentTrayWindows(){ return TWindows; } + //Small simplification functions + static Qt::Key KeycodeToQt(int keycode); + static NativeWindowSystem::MouseButton MouseToQt(int button); + public slots: //These are the slots which are typically only used by the desktop system itself or the NativeWindowEventFilter @@ -72,10 +77,10 @@ public slots: void NewTrayWindowDetected(WId); //will automatically create the new NativeWindow object void WindowCloseDetected(WId); //will update the lists and make changes if needed void WindowPropertiesChanged(WId, NativeWindow::Property); //will rescan the window and update the object as needed - void NewKeyPress(int keycode, WId win = 0); +/* void NewKeyPress(int keycode, WId win = 0); void NewKeyRelease(int keycode, WId win = 0); void NewMousePress(int buttoncode, WId win = 0); - void NewMouseRelease(int buttoncode, WId win = 0); + void NewMouseRelease(int buttoncode, WId win = 0);*/ void CheckDamageID(WId); private slots: -- cgit