mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-23 08:56:29 -05:00
Activate new views
This commit is contained in:
parent
e66e18f4de
commit
518ef46ef2
6 changed files with 19 additions and 12 deletions
|
|
@ -103,6 +103,16 @@ bool view_center(struct roots_view *view) {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool view_initialize(struct roots_view *view) {
|
||||
bool centered = view_center(view);
|
||||
if (centered) {
|
||||
struct roots_input *input = view->desktop->server->input;
|
||||
set_view_focus(input, view->desktop, view);
|
||||
wlr_seat_keyboard_notify_enter(input->wl_seat, view->wlr_surface);
|
||||
}
|
||||
return centered;
|
||||
}
|
||||
|
||||
static struct wlr_subsurface *subsurface_at(struct wlr_surface *surface,
|
||||
double sx, double sy, double *sub_x, double *sub_y) {
|
||||
struct wlr_subsurface *subsurface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue