changeset 59789:97d17acaf4e7

* xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK, button events are not received otherwise.
author Jan Djärv <jan.h.d@swipnet.se>
date Sat, 29 Jan 2005 22:25:58 +0000
parents 99f372bad7b9
children 85fb49e8bc60
files src/ChangeLog src/xfns.c
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Jan 29 17:31:43 2005 +0000
+++ b/src/ChangeLog	Sat Jan 29 22:25:58 2005 +0000
@@ -1,3 +1,8 @@
+2005-01-29  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
+
+	* xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
+	button events are not received otherwise.
+
 2005-01-29  Richard M. Stallman  <rms@gnu.org>
 
 	* buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
--- a/src/xfns.c	Sat Jan 29 17:31:43 2005 +0000
+++ b/src/xfns.c	Sat Jan 29 22:25:58 2005 +0000
@@ -4339,11 +4339,15 @@
 		    {
 		      unsigned long mask = CWCursor;
 		      XSetWindowAttributes attrs;
-
+#ifdef USE_GTK
+                      Window parent = FRAME_X_WINDOW (f);
+#else
+                      Window parent = FRAME_OUTER_WINDOW (f);
+#endif
 		      attrs.cursor = f->output_data.x->hourglass_cursor;
 
 		      f->output_data.x->hourglass_window
-			= XCreateWindow (dpy, FRAME_OUTER_WINDOW (f),
+			= XCreateWindow (dpy, parent,
 					 0, 0, 32000, 32000, 0, 0,
 					 InputOnly,
 					 CopyFromParent,