From 1966b81b4d51998666c81e4618d42c25712f17a1 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 10 Feb 2024 09:49:01 +0100 Subject: liberty-xui: tolerate zero-area ConfigureNotify Happens when launching from a fullscreen window in i3. --- liberty-xui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/liberty-xui.c b/liberty-xui.c index 761d7c6..a538da7 100644 --- a/liberty-xui.c +++ b/liberty-xui.c @@ -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); -- cgit v1.2.3-70-g09d2