mirror of
https://github.com/labwc/labwc.git
synced 2026-02-05 04:06:33 -05:00
xwayland: Do not try to focus a window that was already in focus
Signed-off-by: Vasiliy Stelmachenok <ventureo@cachyos.org>
This commit is contained in:
parent
f09a0c2be3
commit
240fc47dcc
1 changed files with 3 additions and 1 deletions
|
|
@ -55,7 +55,9 @@ set_or_offer_focus(struct view *view)
|
|||
break;
|
||||
case VIEW_WANTS_FOCUS_LIKELY:
|
||||
case VIEW_WANTS_FOCUS_UNLIKELY:
|
||||
view_offer_focus(view);
|
||||
if (view->surface != seat->seat->keyboard_state.focused_surface) {
|
||||
view_offer_focus(view);
|
||||
}
|
||||
break;
|
||||
case VIEW_WANTS_FOCUS_NEVER:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue