dotfiles/pkgs/osu-wine/patches/revert-x11-gnome-fix.patch
2024-05-15 08:35:49 +07:00

28 lines
1.3 KiB
Diff

## Patch to revert commit 35193586 which supposedly broke osu!
## on GNOME on X11 due to compositor not turning off even with fullscreen enabled
--- b/dlls/winex11.drv/window.c
+++ a/dlls/winex11.drv/window.c
@@ -1542,21 +1542,9 @@
attrib.border_pixel = 0;
attrib.colormap = default_colormap;
-#ifdef HAVE_LIBXSHAPE
- {
- static XRectangle empty_rect;
- dummy_parent = XCreateWindow( gdi_display, root_window, 0, 0, 1, 1, 0,
- default_visual.depth, InputOutput, default_visual.visual,
- CWColormap | CWBorderPixel | CWOverrideRedirect, &attrib );
- XShapeCombineRectangles( gdi_display, dummy_parent, ShapeBounding, 0, 0, &empty_rect, 1,
- ShapeSet, YXBanded );
- }
-#else
dummy_parent = XCreateWindow( gdi_display, root_window, -1, -1, 1, 1, 0, default_visual.depth,
InputOutput, default_visual.visual,
CWColormap | CWBorderPixel | CWOverrideRedirect, &attrib );
- WARN("Xshape support is not compiled in. Applications under XWayland may have poor performance.\n");
-#endif
XMapWindow( gdi_display, dummy_parent );
}
return dummy_parent;