aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv <[email protected]>2005-01-29 22:25:58 +0000
committerJan Djärv <[email protected]>2005-01-29 22:25:58 +0000
commit49b8b5dcb303bb12ab4f503c42ed1d7c1e6a2132 (patch)
tree9ff4a8f8e7edd3aa13c8d9e1bd55bdfd631090bd
parent5a92a9eb7821b7efe89ef2c4d53f72099e64531e (diff)
* xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
button events are not received otherwise.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xfns.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6c2b21823a..3180fa1216 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-29 Jan Dj,Ad(Brv <[email protected]>
+
+ * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
+ button events are not received otherwise.
+
2005-01-29 Richard M. Stallman <[email protected]>
* buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
diff --git a/src/xfns.c b/src/xfns.c
index 9ee459680a..64a83cdd5f 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,