aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-10-08 18:21:39 +0200
committeremersion <contact@emersion.fr>2017-10-08 18:21:39 +0200
commitb72da6cc44cf19688686383065557425d55ae9ed (patch)
treebceaae1b34f5b2641108f246d0cbe926fb91da79 /rootston
parent518ef46ef2c15bdfd2a1e0274fe2bf628639a310 (diff)
Only center toplevel xdg shell views
Diffstat (limited to 'rootston')
-rw-r--r--rootston/xdg_shell_v6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rootston/xdg_shell_v6.c b/rootston/xdg_shell_v6.c
index 44acab4e..9b8d8882 100644
--- a/rootston/xdg_shell_v6.c
+++ b/rootston/xdg_shell_v6.c
@@ -72,7 +72,8 @@ static void handle_commit(struct wl_listener *listener, void *data) {
wl_container_of(listener, roots_xdg_surface, commit);
struct roots_view *view = roots_xdg_surface->view;
- if (!roots_xdg_surface->initialized) {
+ if (view->xdg_surface_v6->role == WLR_XDG_SURFACE_V6_ROLE_TOPLEVEL &&
+ !roots_xdg_surface->initialized) {
roots_xdg_surface->initialized = view_initialize(view);
}
}