aboutsummaryrefslogtreecommitdiff
path: root/rootston/xdg_shell_v6.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-16 15:03:00 -0400
committerGitHub <noreply@github.com>2017-10-16 15:03:00 -0400
commitcebcda3ed5874f3c0e5f72b00a9cb4da479335dc (patch)
treeb80fa5141f3560bc79b00ba161dab1b04693dc97 /rootston/xdg_shell_v6.c
parent11c1b811db03394cee51cd5f51acf7646b7fdea1 (diff)
parent19784360f11796eb9cbd27ea6baa2ca0bc39a5f5 (diff)
Merge pull request #276 from acrisci/bug/fix-view-centering
bug: fix view centering
Diffstat (limited to 'rootston/xdg_shell_v6.c')
-rw-r--r--rootston/xdg_shell_v6.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/rootston/xdg_shell_v6.c b/rootston/xdg_shell_v6.c
index 9b8d8882..1e21fa02 100644
--- a/rootston/xdg_shell_v6.c
+++ b/rootston/xdg_shell_v6.c
@@ -68,14 +68,7 @@ static void handle_request_resize(struct wl_listener *listener, void *data) {
}
static void handle_commit(struct wl_listener *listener, void *data) {
- struct roots_xdg_surface_v6 *roots_xdg_surface =
- wl_container_of(listener, roots_xdg_surface, commit);
- struct roots_view *view = roots_xdg_surface->view;
-
- if (view->xdg_surface_v6->role == WLR_XDG_SURFACE_V6_ROLE_TOPLEVEL &&
- !roots_xdg_surface->initialized) {
- roots_xdg_surface->initialized = view_initialize(view);
- }
+ // TODO is there anything we need to do here?
}
static void handle_destroy(struct wl_listener *listener, void *data) {
@@ -141,4 +134,6 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {
view->desktop = desktop;
roots_surface->view = view;
list_add(desktop->views, view);
+
+ view_initialize(view);
}