focus properly on desktop change
This commit is contained in:
parent
5f428bdeb2
commit
f37382b66d
1 changed files with 7 additions and 3 deletions
|
@ -460,10 +460,14 @@ void screen_set_desktop(guint num)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* reduce flicker by hiliting now rather than waiting for the server
|
/* have to try focus here because when you leave an empty desktop
|
||||||
FocusIn event */
|
there is no focus out to watch for */
|
||||||
if ((c = focus_fallback_target(TRUE, focus_client)))
|
if ((c = focus_fallback_target(TRUE, focus_client))) {
|
||||||
|
/* reduce flicker by hiliting now rather than waiting for the server
|
||||||
|
FocusIn event */
|
||||||
frame_adjust_focus(c->frame, TRUE);
|
frame_adjust_focus(c->frame, TRUE);
|
||||||
|
client_focus(c);
|
||||||
|
}
|
||||||
|
|
||||||
event_ignore_queued_enters();
|
event_ignore_queued_enters();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue