From b7638d73de2d2f638efe2a83e302f2533eb2c5c0 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 20 Mar 2018 13:25:44 -0400 Subject: Quick checkpoint on the new NativeWindow class (Widgets). --- src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp') 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 #include #include +#include //XLib includes (XCB Damage lib does not appear to register for damage events properly) #include @@ -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){ -- cgit