diff --git a/src/backends/x11/common/eglonxbackend.cpp b/src/backends/x11/common/eglonxbackend.cpp index 76400c8125..6708282932 100644 --- a/src/backends/x11/common/eglonxbackend.cpp +++ b/src/backends/x11/common/eglonxbackend.cpp @@ -31,7 +31,6 @@ EglOnXBackend::EglOnXBackend(Display *display) , m_connection(connection()) , m_x11Display(display) , m_rootWindow(rootWindow()) - , m_x11ScreenNumber(kwinApp()->x11ScreenNumber()) { // Egl is always direct rendering setIsDirectRendering(true); @@ -44,7 +43,6 @@ EglOnXBackend::EglOnXBackend(xcb_connection_t *connection, Display *display, xcb , m_connection(connection) , m_x11Display(display) , m_rootWindow(rootWindow) - , m_x11ScreenNumber(screenNumber) , m_renderingWindow(renderingWindow) { // Egl is always direct rendering diff --git a/src/backends/x11/common/eglonxbackend.h b/src/backends/x11/common/eglonxbackend.h index b2b1f12c5b..a2c8264abf 100644 --- a/src/backends/x11/common/eglonxbackend.h +++ b/src/backends/x11/common/eglonxbackend.h @@ -60,7 +60,6 @@ private: xcb_connection_t *m_connection; Display *m_x11Display; xcb_window_t m_rootWindow; - int m_x11ScreenNumber; xcb_window_t m_renderingWindow = XCB_WINDOW_NONE; bool m_havePlatformBase = false; };