1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-13 15:29:15 -04:00
ports/x11/tint/files/patch-src_main.c
Fernando Apesteguía ef10d90ce3 x11/tint: Fix crashes caused by conky
The attached patch integrates a band-aid fix into x11/tint which fixes crashes
when conky is running on the the same X11 display

PR:		278343
Reported by:	yamagi@yamagi.org
2024-05-09 08:30:42 +02:00

12 lines
362 B
C

--- src/main.c.orig 2024-04-13 07:17:11 UTC
+++ src/main.c
@@ -419,6 +419,9 @@ void handle_x_event(XEvent *e)
if (handle_x_event_autohide(e))
return;
+ if ((e->type==4 || e->type==5 || e->type==6) && e->xproperty.window==server.root_win)
+ return;
+
Panel *panel = get_panel(e->xany.window);
switch (e->type) {
case ButtonPress: {