liberty-xui: tolerate zero-area ConfigureNotify

Happens when launching from a fullscreen window in i3.
This commit is contained in:
Přemysl Eric Janouch 2024-02-10 09:49:01 +01:00
parent f8c6ac2ed1
commit 1966b81b4d
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -1551,7 +1551,8 @@ x11_init_pixmap (void)
{
int screen = DefaultScreen (g_xui.dpy);
g_xui.x11_pixmap = XCreatePixmap (g_xui.dpy, g_xui.x11_window,
g_xui.width, g_xui.height, DefaultDepth (g_xui.dpy, screen));
MAX (g_xui.width, 1), MAX (g_xui.height, 1),
DefaultDepth (g_xui.dpy, screen));
Visual *visual = DefaultVisual (g_xui.dpy, screen);
XRenderPictFormat *format = XRenderFindVisualFormat (g_xui.dpy, visual);