Mercurial > emacs
diff src/xfns.c @ 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 | 0096c58ce34a |
children | adc18da68682 3dcba0bc766b fa9654493afb |
line wrap: on
line diff
--- 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,