From 896880be965695d4238693e78d593891927079da Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 3 Aug 2021 18:09:04 +0200 Subject: [PATCH] Revert "Fix compile issue in https://bugs.kde.org/show_bug.cgi?id=440372" https://invent.kde.org/plasma/kwin/-/merge_requests/1220 This reverts commit 44ad9437c40bfec567678eed78ab7af56100338a because it breaks build: platforms/x11/common/eglonxbackend.cpp:224:66: error: cannot initialize a parameter of type 'EGLNativeWindowType' (aka 'unsigned long') with an rvalue of type 'xcb_window_t *' (aka 'unsigned int *') surface = eglCreateWindowSurface(eglDisplay(), config(), &window, nullptr); ^~~~~~~ --- src/plugins/platforms/x11/common/eglonxbackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/x11/common/eglonxbackend.cpp b/src/plugins/platforms/x11/common/eglonxbackend.cpp index 33b75eee10..c62ec170d3 100644 --- a/src/plugins/platforms/x11/common/eglonxbackend.cpp +++ b/src/plugins/platforms/x11/common/eglonxbackend.cpp @@ -221,7 +221,7 @@ EGLSurface EglOnXBackend::createSurface(xcb_window_t window) // cannot be an xcb_window_t. surface = eglCreatePlatformWindowSurfaceEXT(eglDisplay(), config(), (void *) &window, nullptr); } else { - surface = eglCreateWindowSurface(eglDisplay(), config(), &window, nullptr); + surface = eglCreateWindowSurface(eglDisplay(), config(), window, nullptr); } return surface;