mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-10 13:29:44 -05:00
Activate new views
This commit is contained in:
parent
e66e18f4de
commit
518ef46ef2
6 changed files with 19 additions and 12 deletions
|
|
@ -123,8 +123,8 @@ void cursor_update_position(struct roots_input *input, uint32_t time) {
|
|||
}
|
||||
}
|
||||
|
||||
static void set_view_focus(struct roots_input *input,
|
||||
struct roots_desktop *desktop, struct roots_view *view) {
|
||||
void set_view_focus(struct roots_input *input, struct roots_desktop *desktop,
|
||||
struct roots_view *view) {
|
||||
if (input->active_view == view) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -140,8 +140,7 @@ static void set_view_focus(struct roots_input *input,
|
|||
struct roots_view *_view = desktop->views->items[i];
|
||||
if (_view != view) {
|
||||
view_activate(_view, false);
|
||||
}
|
||||
if (view == _view) {
|
||||
} else {
|
||||
index = i;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue