From 49b8b5dcb303bb12ab4f503c42ed1d7c1e6a2132 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Sat, 29 Jan 2005 22:25:58 +0000 Subject: [PATCH] * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK, button events are not received otherwise. --- src/ChangeLog | 5 +++++ src/xfns.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) 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, -- 2.39.5