aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2015-10-08 04:13:06 -0400
committerKen Raeburn2015-10-11 01:15:22 -0400
commitec2d99026ff2f928b0669da2c2cf909b62aeb6c1 (patch)
tree6deca974a249644f36f4c41644f605bfa345679e /src
parent08e27d294468aa72cb06a50821dbade8ea03b2ce (diff)
downloademacs-ec2d99026ff2f928b0669da2c2cf909b62aeb6c1.tar.gz
emacs-ec2d99026ff2f928b0669da2c2cf909b62aeb6c1.zip
Fix cursor setting for tip frame; re-enable cursor generation.
* src/xfns.c (x_create_tip_frame): Include the cursor in the window attributes sent when creating the new X window. Don't skip setting the pointerColor parameter.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 468a85645d0..fefd8e8f91f 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -5319,12 +5319,8 @@ x_create_tip_frame (struct x_display_info *dpyinfo,
5319 "foreground", "Foreground", RES_TYPE_STRING); 5319 "foreground", "Foreground", RES_TYPE_STRING);
5320 x_default_parameter (f, parms, Qbackground_color, build_string ("white"), 5320 x_default_parameter (f, parms, Qbackground_color, build_string ("white"),
5321 "background", "Background", RES_TYPE_STRING); 5321 "background", "Background", RES_TYPE_STRING);
5322#if 0 /* This code currently doesn't work for tooltip frames; the
5323 cursor being set doesn't seem to get used. The call generates
5324 a bit of traffic, so skip it for now. */
5325 x_default_parameter (f, parms, Qmouse_color, build_string ("black"), 5322 x_default_parameter (f, parms, Qmouse_color, build_string ("black"),
5326 "pointerColor", "Foreground", RES_TYPE_STRING); 5323 "pointerColor", "Foreground", RES_TYPE_STRING);
5327#endif
5328 x_default_parameter (f, parms, Qcursor_color, build_string ("black"), 5324 x_default_parameter (f, parms, Qcursor_color, build_string ("black"),
5329 "cursorColor", "Foreground", RES_TYPE_STRING); 5325 "cursorColor", "Foreground", RES_TYPE_STRING);
5330 x_default_parameter (f, parms, Qborder_color, build_string ("black"), 5326 x_default_parameter (f, parms, Qborder_color, build_string ("black"),
@@ -5345,7 +5341,7 @@ x_create_tip_frame (struct x_display_info *dpyinfo,
5345 Atom type = FRAME_DISPLAY_INFO (f)->Xatom_net_window_type_tooltip; 5341 Atom type = FRAME_DISPLAY_INFO (f)->Xatom_net_window_type_tooltip;
5346 5342
5347 block_input (); 5343 block_input ();
5348 mask = CWBackPixel | CWOverrideRedirect | CWEventMask; 5344 mask = CWBackPixel | CWOverrideRedirect | CWEventMask | CWCursor;
5349 if (DoesSaveUnders (dpyinfo->screen)) 5345 if (DoesSaveUnders (dpyinfo->screen))
5350 mask |= CWSaveUnder; 5346 mask |= CWSaveUnder;
5351 5347
@@ -5355,6 +5351,9 @@ x_create_tip_frame (struct x_display_info *dpyinfo,
5355 attrs.override_redirect = True; 5351 attrs.override_redirect = True;
5356 attrs.save_under = True; 5352 attrs.save_under = True;
5357 attrs.background_pixel = FRAME_BACKGROUND_PIXEL (f); 5353 attrs.background_pixel = FRAME_BACKGROUND_PIXEL (f);
5354 attrs.cursor =
5355 f->output_data.x->current_cursor
5356 = f->output_data.x->text_cursor;
5358 /* Arrange for getting MapNotify and UnmapNotify events. */ 5357 /* Arrange for getting MapNotify and UnmapNotify events. */
5359 attrs.event_mask = StructureNotifyMask; 5358 attrs.event_mask = StructureNotifyMask;
5360 tip_window 5359 tip_window