summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbox/client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 477575a8..5c025229 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -3463,6 +3463,8 @@ gboolean client_can_focus(ObClient *self)
gboolean client_focus(ObClient *self)
{
+ /* we might not focus this window, so if we have modal children which would
+ be focused instead, bring them to this desktop */
client_bring_modal_windows(self);
/* choose the correct target */