[linux] xcbutils: debug

This commit is contained in:
SimplestStudio
2025-09-08 18:17:45 +03:00
parent e66cadf319
commit 1965608a7f

View File

@ -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);
}