aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfns.c
diff options
context:
space:
mode:
authorFred Pierresteguy <[email protected]>1994-02-24 12:54:54 +0000
committerFred Pierresteguy <[email protected]>1994-02-24 12:54:54 +0000
commit31ac8d8c427b54a18127d9bd53f1f9d4371b762f (patch)
tree99b190c34053ea2df06835996e56db870c8b13b4 /src/xfns.c
parent78589e07a844d0fb7081494c30e53213215c96ab (diff)
(x_window): Call XChangeWindowAttributes with the standard
event set to make all these events reach the Emacs frame.
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/xfns.c b/src/xfns.c
index a0192bff9e..19c0f0b373 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1699,6 +1699,8 @@ x_window (f)
struct frame *f;
{
XClassHint class_hints;
+ XSetWindowAttributes attributes;
+ unsigned long attribute_mask;
#ifdef USE_X_TOOLKIT
Widget shell_widget;
@@ -1772,13 +1774,16 @@ x_window (f)
Xatom_wm_protocols, XA_ATOM, 32, PropModeAppend,
(unsigned char*) NULL, 0);
+ /* Make all the standard events reach the Emacs frame. */
+ attributes.event_mask = STANDARD_EVENT_SET;
+ attribute_mask = CWEventMask;
+ XChangeWindowAttributes (XtDisplay (shell_widget), XtWindow (shell_widget),
+ attribute_mask, &attributes);
+
XtMapWidget (screen_widget);
#else /* not USE_X_TOOLKIT */
- XSetWindowAttributes attributes;
- unsigned long attribute_mask;
-
attributes.background_pixel = f->display.x->background_pixel;
attributes.border_pixel = f->display.x->border_pixel;