+ target = focus_fallback_target(OB_FOCUS_FALLBACK_NOFOCUS);
+ if (target) {
+ frame_adjust_focus(target->frame, TRUE);
+
+ /*!
+ When this focus_client check is not used, you can end up with races,
+ as demonstrated with gnome-panel, sometmies the window you click on
+ another desktop ends up losing focus cuz of the focus change here.
+ */
+ if (!focus_client)
+ client_focus(target);
+ }