]> git.eshelyaron.com Git - emacs.git/commitdiff
* 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 6c2b21823adf5f850af13462d808df8155a87bab..3180fa1216ca0321961acdebf362ea16417a9719 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 9ee459680aa6edb1a6c5216a542b661d0c13ef6b..64a83cdd5f6c099fe27592908ab26a0bf4220a60 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,