aboutsummaryrefslogtreecommitdiff
path: root/rootston/xdg_shell_v6.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-10-08 18:19:05 +0200
committeremersion <contact@emersion.fr>2017-10-08 18:19:05 +0200
commit518ef46ef2c15bdfd2a1e0274fe2bf628639a310 (patch)
tree8db05bf590f1e459b7879a4d57a5da8ef631fb54 /rootston/xdg_shell_v6.c
parente66e18f4de6996a5c8d923668834096b61b60110 (diff)
Activate new views
Diffstat (limited to 'rootston/xdg_shell_v6.c')
-rw-r--r--rootston/xdg_shell_v6.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/rootston/xdg_shell_v6.c b/rootston/xdg_shell_v6.c
index 2471b3ee..44acab4e 100644
--- a/rootston/xdg_shell_v6.c
+++ b/rootston/xdg_shell_v6.c
@@ -73,10 +73,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
struct roots_view *view = roots_xdg_surface->view;
if (!roots_xdg_surface->initialized) {
- bool centered = view_center(view);
- if (centered) {
- roots_xdg_surface->initialized = true;
- }
+ roots_xdg_surface->initialized = view_initialize(view);
}
}