aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/NativeWindowSystem.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-03-07 00:29:35 -0800
committerKen Moore <ken@ixsystems.com>2017-03-07 00:29:35 -0800
commitefc743b38b2ba3dc407d9b1410fdba4c2cfb3b6b (patch)
tree00253204ef542d9fd9abb2bc0cbadb18eb5a7fb5 /src-qt5/core/libLumina/NativeWindowSystem.cpp
parentGet the ping/pong system all setup within the NativeWindowSystem. (diff)
downloadlumina-efc743b38b2ba3dc407d9b1410fdba4c2cfb3b6b.tar.gz
lumina-efc743b38b2ba3dc407d9b1410fdba4c2cfb3b6b.tar.bz2
lumina-efc743b38b2ba3dc407d9b1410fdba4c2cfb3b6b.zip
Clean up a couple defines.
Diffstat (limited to 'src-qt5/core/libLumina/NativeWindowSystem.cpp')
-rw-r--r--src-qt5/core/libLumina/NativeWindowSystem.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src-qt5/core/libLumina/NativeWindowSystem.cpp b/src-qt5/core/libLumina/NativeWindowSystem.cpp
index c4905d4c..36a0b7f0 100644
--- a/src-qt5/core/libLumina/NativeWindowSystem.cpp
+++ b/src-qt5/core/libLumina/NativeWindowSystem.cpp
@@ -420,7 +420,7 @@ void NativeWindowSystem::NewWindowDetected(WId id){
if(attr->override_redirect){ free(attr); return; } //window has override redirect set (do not manage)
free(attr);
//Register for events from this window
- #define FRAME_WIN_EVENT_MASK (XCB_EVENT_MASK_BUTTON_PRESS | \
+ #define NORMAL_WIN_EVENT_MASK (XCB_EVENT_MASK_BUTTON_PRESS | \
XCB_EVENT_MASK_BUTTON_RELEASE | \
XCB_EVENT_MASK_POINTER_MOTION | \
XCB_EVENT_MASK_BUTTON_MOTION | \
@@ -430,7 +430,7 @@ void NativeWindowSystem::NewWindowDetected(WId id){
XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY | \
XCB_EVENT_MASK_ENTER_WINDOW)
- uint32_t value_list[1] = {FRAME_WIN_EVENT_MASK};
+ uint32_t value_list[1] = {NORMAL_WIN_EVENT_MASK};
xcb_change_window_attributes(QX11Info::connection(), id, XCB_CW_EVENT_MASK, value_list);
//Now go ahead and create/populate the container for this window
NativeWindow *win = new NativeWindow(id);
@@ -448,7 +448,7 @@ void NativeWindowSystem::NewTrayWindowDetected(WId id){
if(attr->override_redirect){ free(attr); return; } //window has override redirect set (do not manage)
free(attr);
//Register for events from this window
- #define FRAME_WIN_EVENT_MASK (XCB_EVENT_MASK_BUTTON_PRESS | \
+ #define TRAY_WIN_EVENT_MASK (XCB_EVENT_MASK_BUTTON_PRESS | \
XCB_EVENT_MASK_BUTTON_RELEASE | \
XCB_EVENT_MASK_POINTER_MOTION | \
XCB_EVENT_MASK_BUTTON_MOTION | \
@@ -458,7 +458,7 @@ void NativeWindowSystem::NewTrayWindowDetected(WId id){
XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY | \
XCB_EVENT_MASK_ENTER_WINDOW)
- uint32_t value_list[1] = {FRAME_WIN_EVENT_MASK};
+ uint32_t value_list[1] = {TRAY_WIN_EVENT_MASK};
xcb_change_window_attributes(QX11Info::connection(), id, XCB_CW_EVENT_MASK, value_list);
//Now go ahead and create/populate the container for this window
NativeWindow *win = new NativeWindow(id);
bgstack15