mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-10 13:29:44 -05:00
Merge branch 'master' into feature/xdg-popup
This commit is contained in:
commit
4f848000af
27 changed files with 204 additions and 66 deletions
|
|
@ -133,15 +133,19 @@ static void set_view_focus(struct roots_input *input,
|
|||
if (!view) {
|
||||
return;
|
||||
}
|
||||
input->last_active_view = view;
|
||||
|
||||
size_t index = 0;
|
||||
for (size_t i = 0; i < desktop->views->length; ++i) {
|
||||
struct roots_view *_view = desktop->views->items[i];
|
||||
view_activate(_view, _view == view);
|
||||
if (_view != view) {
|
||||
view_activate(_view, false);
|
||||
}
|
||||
if (view == _view) {
|
||||
index = i;
|
||||
}
|
||||
}
|
||||
view_activate(view, true);
|
||||
// TODO: list_swap
|
||||
list_del(desktop->views, index);
|
||||
list_add(desktop->views, view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue