summaryrefslogtreecommitdiff
path: root/console-client/pc-mouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'console-client/pc-mouse.c')
-rw-r--r--console-client/pc-mouse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/console-client/pc-mouse.c b/console-client/pc-mouse.c
index abdb602b..40a569d0 100644
--- a/console-client/pc-mouse.c
+++ b/console-client/pc-mouse.c
@@ -118,8 +118,11 @@ repeater_select (struct protid *cred, mach_port_t reply,
if (!cred)
return EOPNOTSUPP;
+ *type &= ~SELECT_URG;
+
if (*type & ~SELECT_READ)
- return EINVAL;
+ /* Error immediately available... */
+ return 0;
if (*type == 0)
return 0;