mirror of
https://github.com/labwc/labwc.git
synced 2026-02-11 04:27:51 -05:00
Revert "desktop: allow re-focus between "globally active" views of the same PID"
This is undesired when a focusable popup (e.g. applications menu) of an
unfocusable view (e.g. XWayland panel) is closed.
This reverts commit f6e3527767.
This commit is contained in:
parent
4eb34f97de
commit
11cdad0c11
3 changed files with 5 additions and 30 deletions
|
|
@ -214,8 +214,6 @@ desktop_cycle_view(struct server *server, struct view *start_view,
|
|||
struct view *
|
||||
desktop_topmost_focusable_view(struct server *server)
|
||||
{
|
||||
struct wlr_surface *prev =
|
||||
server->seat.seat->keyboard_state.focused_surface;
|
||||
struct view *view;
|
||||
struct wl_list *node_list;
|
||||
struct wlr_scene_node *node;
|
||||
|
|
@ -226,7 +224,7 @@ desktop_topmost_focusable_view(struct server *server)
|
|||
continue;
|
||||
}
|
||||
view = node_view_from_node(node);
|
||||
if (view->mapped && view_is_focusable_from(view, prev)) {
|
||||
if (view->mapped && view_is_focusable(view)) {
|
||||
return view;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue