summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Allum <breakfast@10.am>2004-09-01 08:31:20 +0000
committerMatthew Allum <breakfast@10.am>2004-09-01 08:31:20 +0000
commit16ff3a872731633b6f1f4920f793153722026189 (patch)
treecf0653160eb4976619c466a3e4842aba695cb37a
parent2d065c4c33b9ec17c4c791070cf8189cb57bbb9c (diff)
Actuall select events for -parent option
-rw-r--r--hw/kdrive/ephyr/hostx.c10
1 files 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
{