aboutsummaryrefslogtreecommitdiff
path: root/rootston/wl_shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'rootston/wl_shell.c')
-rw-r--r--rootston/wl_shell.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/rootston/wl_shell.c b/rootston/wl_shell.c
index 81c41f76..eb977367 100644
--- a/rootston/wl_shell.c
+++ b/rootston/wl_shell.c
@@ -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);
}
}