mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Activate new views
This commit is contained in:
parent
e66e18f4de
commit
518ef46ef2
6 changed files with 19 additions and 12 deletions
|
|
@ -56,10 +56,7 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) {
|
|||
|
||||
if (view->wl_shell_surface->state == WLR_WL_SHELL_SURFACE_STATE_TOPLEVEL &&
|
||||
!roots_surface->initialized) {
|
||||
bool centered = view_center(view);
|
||||
if (centered) {
|
||||
roots_surface->initialized = true;
|
||||
}
|
||||
roots_surface->initialized = view_initialize(view);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue