summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbox/event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 7db6945d..a0515e2e 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -1144,7 +1144,7 @@ static void find_max_fd()
(gpointer)&tmpmax);
max_fd = MAX(x_fd, tmpmax);
#ifdef USE_SM
- max_fd = MAX(ice_fd, tmpmax);
+ max_fd = MAX(ice_fd, max_fd);
#endif
}