mirror of
https://github.com/labwc/labwc.git
synced 2026-04-10 08:21:07 -04:00
action: ignore Focus action while window switching
We could check against server->input_mode inside desktop_focus_view(), but it should be done after we release 0.8.3.
This commit is contained in:
parent
6927153a83
commit
b5bb014046
1 changed files with 6 additions and 1 deletions
|
|
@ -1042,7 +1042,12 @@ actions_run(struct view *activator, struct server *server,
|
|||
}
|
||||
break;
|
||||
case ACTION_TYPE_FOCUS:
|
||||
if (view) {
|
||||
if (view && server->input_mode
|
||||
!= LAB_INPUT_STATE_WINDOW_SWITCHER) {
|
||||
/*
|
||||
* TODO: check against server->input_mode
|
||||
* inside desktop_focus_view()
|
||||
*/
|
||||
desktop_focus_view(view, /*raise*/ false);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue