diff options
author | Ken Moore <ken@ixsystems.com> | 2018-03-20 13:25:44 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2018-03-20 13:25:44 -0400 |
commit | b7638d73de2d2f638efe2a83e302f2533eb2c5c0 (patch) | |
tree | 54e676c0374ac1dcb697c47a703d1faf1f8c8e88 /src-qt5/core/lumina-desktop-unified/src-events | |
parent | Cleanup the printing stuff for Qt 5.9+. (diff) | |
download | lumina-b7638d73de2d2f638efe2a83e302f2533eb2c5c0.tar.gz lumina-b7638d73de2d2f638efe2a83e302f2533eb2c5c0.tar.bz2 lumina-b7638d73de2d2f638efe2a83e302f2533eb2c5c0.zip |
Quick checkpoint on the new NativeWindow class (Widgets).
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-events')
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp | 4 | ||||
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-events/events.pri | 2 |
2 files changed, 4 insertions, 2 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 b9c1b6ef..da004061 100644 --- a/src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp +++ b/src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp @@ -22,6 +22,7 @@ #include <xcb/xcb_aux.h> #include <xcb/composite.h> #include <xcb/damage.h> +#include <xcb/screensaver.h> //XLib includes (XCB Damage lib does not appear to register for damage events properly) #include <X11/extensions/Xdamage.h> @@ -84,7 +85,8 @@ inline void registerClientEvents(WId id, bool client = true){ | XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY | XCB_EVENT_MASK_ENTER_WINDOW) };*/ - xcb_change_window_attributes(QX11Info::connection(), id, XCB_CW_EVENT_MASK, values); + //xcb_change_window_attributes(QX11Info::connection(), id, XCB_CW_EVENT_MASK, values); + xcb_screensaver_select_input(QX11Info::connection(), id, values[0]); } /*inline void registerClientEvents(WId id){ diff --git a/src-qt5/core/lumina-desktop-unified/src-events/events.pri b/src-qt5/core/lumina-desktop-unified/src-events/events.pri index 3f586e8b..0bc89f64 100644 --- a/src-qt5/core/lumina-desktop-unified/src-events/events.pri +++ b/src-qt5/core/lumina-desktop-unified/src-events/events.pri @@ -1,6 +1,6 @@ # Files QT *= x11extras -LIBS *= -lc -lxcb -lxcb-ewmh -lxcb-icccm -lxcb-image -lxcb-composite -lxcb-damage -lxcb-util -lxcb-keysyms -lXdamage +LIBS *= -lc -lxcb -lxcb-ewmh -lxcb-icccm -lxcb-image -lxcb-composite -lxcb-damage -lxcb-util -lxcb-keysyms -lxcb-screensaver -lXdamage SOURCES *= $${PWD}/LShortcutEvents.cpp \ $${PWD}/NativeEventFilter.cpp \ |