all repos — openbox @ c22a6b32ab23a4193863882e14fc6ff77ed3d247

openbox fork - make it a bit more like ryudo

only fallback when nothing is focused, provide comment explaining why
Dana Jansens danakj@orodu.net
commit

c22a6b32ab23a4193863882e14fc6ff77ed3d247

parent

9bac22eb402a477b802416287b9e76bf908408ed

1 files changed, 7 insertions(+), 1 deletions(-)

jump to
M openbox/screen.copenbox/screen.c

@@ -457,7 +457,13 @@ }

event_ignore_queued_enters(); - focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS); + /*! + 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 on + another desktop ends up losing focus cuz of the fallback. + */ + if (!focus_client) + focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS); } static void get_row_col(guint d, guint *r, guint *c)