From: Jan Djärv Date: Sat, 29 Jan 2005 22:25:58 +0000 (+0000) Subject: * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK, X-Git-Tag: ttn-vms-21-2-B4~2537 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=49b8b5dcb303bb12ab4f503c42ed1d7c1e6a2132;p=emacs.git * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK, button events are not received otherwise. --- diff --git a/src/ChangeLog b/src/ChangeLog index 6c2b21823ad..3180fa1216c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-01-29 Jan Dj,Ad(Brv + + * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK, + button events are not received otherwise. + 2005-01-29 Richard M. Stallman * buffer.c (syms_of_buffer) : Doc fix. diff --git a/src/xfns.c b/src/xfns.c index 9ee459680aa..64a83cdd5f6 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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,