From be50297d437e7cd42e89f0fb7f4b4ef233db7dbf Mon Sep 17 00:00:00 2001 From: Manuel Giraud Date: Mon, 6 Nov 2023 17:12:01 +0100 Subject: [PATCH] Just invert destination for flashing * src/xterm.c (XTflash): Use invert for flashing. --- src/xterm.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index d01c4da0564..31892f22690 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -11435,12 +11435,9 @@ XTflash (struct frame *f) if (FRAME_X_VISUAL_INFO (f)->class == TrueColor) { - values.function = GXxor; - values.foreground = (FRAME_FOREGROUND_PIXEL (f) - ^ FRAME_BACKGROUND_PIXEL (f)); + values.function = GXinvert; - gc = XCreateGC (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), - GCFunction | GCForeground, &values); + gc = XCreateGC (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), GCFunction, &values); } else gc = FRAME_X_OUTPUT (f)->normal_gc; -- 2.42.0