aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/NativeWindowSystem.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-03-06 22:46:38 -0800
committerKen Moore <ken@ixsystems.com>2017-03-06 22:46:38 -0800
commit7c464294cc114d7991244a1fd7d65697d91c8bd6 (patch)
treeb400e956ca650785409b0b5dd042eb23e069b6a4 /src-qt5/core/libLumina/NativeWindowSystem.h
parentSome more work on the NativeWindowSystem "plumbing". Get the system tray init... (diff)
downloadlumina-7c464294cc114d7991244a1fd7d65697d91c8bd6.tar.gz
lumina-7c464294cc114d7991244a1fd7d65697d91c8bd6.tar.bz2
lumina-7c464294cc114d7991244a1fd7d65697d91c8bd6.zip
Add a bunch more of the XCB guts to the NativeWindowSystem (Title, ShortTitle, Icon)
Diffstat (limited to 'src-qt5/core/libLumina/NativeWindowSystem.h')
-rw-r--r--src-qt5/core/libLumina/NativeWindowSystem.h9
1 files changed, 7 insertions, 2 deletions
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<NativeWindow*> currentWindows(){ return NWindows; }
QList<NativeWindow*> 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:
bgstack15