From 16ff3a872731633b6f1f4920f793153722026189 Mon Sep 17 00:00:00 2001 From: Matthew Allum Date: Wed, 1 Sep 2004 08:31:20 +0000 Subject: [PATCH] Actuall select events for -parent option --- hw/kdrive/ephyr/hostx.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c index a4aea3f3f..f02978727 100644 --- a/hw/kdrive/ephyr/hostx.c +++ b/hw/kdrive/ephyr/hostx.c @@ -198,7 +198,7 @@ hostx_init(void) if (HostX.win_pre_existing != None) { Status result; - XWindowAttributes attr; + XWindowAttributes prewin_attr; /* Get screen size from existing window */ @@ -206,7 +206,7 @@ hostx_init(void) hostx_errors_trap(); - result = XGetWindowAttributes(HostX.dpy, HostX.win, &attr); + result = XGetWindowAttributes(HostX.dpy, HostX.win, &prewin_attr); if (hostx_errors_untrap() || !result) { @@ -214,8 +214,10 @@ hostx_init(void) exit(1); } - HostX.win_width = attr.width; - HostX.win_height = attr.height; + HostX.win_width = prewin_attr.width; + HostX.win_height = prewin_attr.height; + + XSelectInput(HostX.dpy, HostX.win, attr.event_mask); } else {