From c51d2b5e2962d547e69791d49a4ef7002422199e Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 20 Nov 2000 22:28:37 +0000 Subject: [PATCH] (x_create_tip_frame): Use CWSaveUnder only if the screen supports it. --- src/ChangeLog | 3 +++ src/xfns.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index b4dd1f34fa5..66ed79aedaa 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2000-11-20 Gerd Moellmann + * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the + screen supports it. + * s/gnu-linux.h: Don't use `#cpu'. * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's diff --git a/src/xfns.c b/src/xfns.c index 84813c07054..a9750be61f7 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -10424,7 +10424,10 @@ x_create_tip_frame (dpyinfo, parms) unsigned long mask; BLOCK_INPUT; - mask = CWBackPixel | CWOverrideRedirect | CWSaveUnder | CWEventMask; + mask = CWBackPixel | CWOverrideRedirect | CWEventMask; + if (DoesSaveUnders (dpyinfo->screen)) + mask |= CWSaveUnder; + /* Window managers look at the override-redirect flag to determine whether or net to give windows a decoration (Xlib spec, chapter 3.2.8). */ -- 2.39.2