only fallback when nothing is focused, provide comment explaining why
This commit is contained in:
parent
9bac22eb40
commit
c22a6b32ab
1 changed files with 7 additions and 1 deletions
|
@ -457,7 +457,13 @@ void screen_set_desktop(guint num)
|
||||||
|
|
||||||
event_ignore_queued_enters();
|
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)
|
static void get_row_col(guint d, guint *r, guint *c)
|
||||||
|
|
Loading…
Reference in a new issue