* xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 29 Jan 2005 22:25:58 +0000 (22:25 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 29 Jan 2005 22:25:58 +0000 (22:25 +0000)
button events are not received otherwise.

src/ChangeLog
src/xfns.c

index 6c2b218..3180fa1 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-29  Jan Dj\e,Ad\e(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.
index 9ee4596..64a83cd 100644 (file)
@@ -4339,11 +4339,15 @@ show_hourglass (timer)
                    {
                      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,