From 0757a60858d676229aaed6adc3e40314c2bf7ef0 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sun, 15 Sep 2019 12:44:48 +0200 Subject: [PATCH] Fix compile failure window variable doesn't exist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Error was: ``` /home/carl/kdesrc/kde/workspace/kwin/plugins/platforms/x11/windowed/x11windowed_output.cpp: In member function ‘void KWin::X11WindowedOutput::initXInputForWindow()’: /home/carl/kdesrc/kde/workspace/kwin/plugins/platforms/x11/windowed/x11windowed_output.cpp:134:14: error: invalid use of non-static member function ‘xcb_window_t KWin::X11WindowedOutput::window() const’ 134 | Q_UNUSED(window) | ^~~~~~ In file included from /home/carl/kdesrc/kde/workspace/kwin/plugins/platforms/x11/windowed/x11windowed_output.cpp:20: /home/carl/kdesrc/kde/workspace/kwin/plugins/platforms/x11/windowed/x11windowed_output.h:50:18: note: declared here 50 | xcb_window_t window() const { | ``` Reviewers: #kwin, romangg Reviewed By: #kwin, romangg Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23957 --- plugins/platforms/x11/windowed/x11windowed_output.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/platforms/x11/windowed/x11windowed_output.cpp b/plugins/platforms/x11/windowed/x11windowed_output.cpp index 56b1e15854..57d032dd9a 100644 --- a/plugins/platforms/x11/windowed/x11windowed_output.cpp +++ b/plugins/platforms/x11/windowed/x11windowed_output.cpp @@ -130,8 +130,6 @@ void X11WindowedOutput::initXInputForWindow() evmasks[0].mask_len = sizeof(mask1); evmasks[0].mask = mask1; XISelectEvents(m_backend->display(), m_window, evmasks, 1); -#else - Q_UNUSED(window) #endif }