From 1965608a7f31f616a1d59cb923d72f4cba1395d5 Mon Sep 17 00:00:00 2001 From: SimplestStudio Date: Mon, 8 Sep 2025 18:17:45 +0300 Subject: [PATCH] [linux] xcbutils: debug --- win-linux/src/platform_linux/xcbutils.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/win-linux/src/platform_linux/xcbutils.cpp b/win-linux/src/platform_linux/xcbutils.cpp index 8b5ee9b2f..21669eee7 100644 --- a/win-linux/src/platform_linux/xcbutils.cpp +++ b/win-linux/src/platform_linux/xcbutils.cpp @@ -191,13 +191,11 @@ void XcbUtils::setInputEnabled(xcb_window_t window, bool enabled) { Display* disp = QX11Info::display(); Window wnd = window; - XRectangle rc = {0, 0, 0, 0}; if (enabled) { - XWindowAttributes attr; - XGetWindowAttributes(disp, wnd, &attr); - rc.width = attr.width; - rc.height = attr.height; + XShapeCombineMask(disp, wnd, ShapeInput, 0, 0, None, ShapeSet); + } else { + XRectangle rc = {0, 0, 0, 0}; + XShapeCombineRectangles(disp, wnd, ShapeInput, 0, 0, &rc, 1, ShapeSet, YXBanded); } - XShapeCombineRectangles(disp, wnd, ShapeInput, 0, 0, &rc, 1, ShapeSet, YXBanded); XFlush(disp); }