mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[linux] xcbutils: debug
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user