diff src/xfns.c @ 106561:85bf88fe0269

Set the extended window manager hint for tooltip windows. * xfns.c (x_create_tip_frame): Set the extended window manager hint for tooltip windows. * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and Xatom_net_window_type. * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and Xatom_net_window_type.
author Jan Djärv <jan.h.d@swipnet.se>
date Sun, 13 Dec 2009 15:39:28 +0000
parents 01190029e5d3
children 21fd634f447a
line wrap: on
line diff
--- a/src/xfns.c	Sun Dec 13 14:24:22 2009 +0000
+++ b/src/xfns.c	Sun Dec 13 15:39:28 2009 +0000
@@ -4825,6 +4825,7 @@
   {
     XSetWindowAttributes attrs;
     unsigned long mask;
+    Atom type = FRAME_X_DISPLAY_INFO (f)->Xatom_net_window_type_tooltip;
 
     BLOCK_INPUT;
     mask = CWBackPixel | CWOverrideRedirect | CWEventMask;
@@ -4849,6 +4850,10 @@
 		       f->border_width,
 		       CopyFromParent, InputOutput, CopyFromParent,
 		       mask, &attrs);
+    XChangeProperty (FRAME_X_DISPLAY (f), tip_window,
+                     FRAME_X_DISPLAY_INFO (f)->Xatom_net_window_type,
+                     XA_ATOM, 32, PropModeReplace,
+                     (unsigned char *)&type, 1);
     UNBLOCK_INPUT;
   }