summaryrefslogtreecommitdiff
path: root/openbox/openbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/openbox.c')
-rw-r--r--openbox/openbox.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c
index fd4973da..c9d88279 100644
--- a/openbox/openbox.c
+++ b/openbox/openbox.c
@@ -167,7 +167,9 @@ int main(int argc, char **argv)
render_shutdown();
timer_shutdown();
}
-
+
+ /* reset focus to root before exiting */
+ XSetInputFocus(ob_display, PointerRoot, RevertToNone, CurrentTime);
XCloseDisplay(ob_display);
dispatch_shutdown();