summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Pierresteguy <F.Pierresteguy@frcl.bull.fr>1994-02-24 12:54:54 +0000
committerFred Pierresteguy <F.Pierresteguy@frcl.bull.fr>1994-02-24 12:54:54 +0000
commit7227cb40f86a67303888441e50737f1cd1a66353 (patch)
tree7b5e1357ae1b7a3b61cf0b2000fce6f939d998b9
parent48a2ebc05beee0ed332975a5e53f725403e02df6 (diff)
downloademacs-7227cb40f86a67303888441e50737f1cd1a66353.tar.gz
(x_window): Call XChangeWindowAttributes with the standard
event set to make all these events reach the Emacs frame.
-rw-r--r--src/xfns.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/xfns.c b/src/xfns.c
index a0192bff9e0..19c0f0b3739 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;