diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-10-16 15:03:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-16 15:03:00 -0400 |
commit | cebcda3ed5874f3c0e5f72b00a9cb4da479335dc (patch) | |
tree | b80fa5141f3560bc79b00ba161dab1b04693dc97 /rootston/wl_shell.c | |
parent | 11c1b811db03394cee51cd5f51acf7646b7fdea1 (diff) | |
parent | 19784360f11796eb9cbd27ea6baa2ca0bc39a5f5 (diff) |
Merge pull request #276 from acrisci/bug/fix-view-centering
bug: fix view centering
Diffstat (limited to 'rootston/wl_shell.c')
-rw-r--r-- | rootston/wl_shell.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/rootston/wl_shell.c b/rootston/wl_shell.c index 34f53c7a..33f54a32 100644 --- a/rootston/wl_shell.c +++ b/rootston/wl_shell.c @@ -50,14 +50,7 @@ static void handle_request_resize(struct wl_listener *listener, void *data) { } static void handle_surface_commit(struct wl_listener *listener, void *data) { - struct roots_wl_shell_surface *roots_surface = - wl_container_of(listener, roots_surface, surface_commit); - struct roots_view *view = roots_surface->view; - - if (view->wl_shell_surface->state == WLR_WL_SHELL_SURFACE_STATE_TOPLEVEL && - !roots_surface->initialized) { - roots_surface->initialized = view_initialize(view); - } + // TODO do we need to do anything here? } static void handle_destroy(struct wl_listener *listener, void *data) { @@ -137,4 +130,5 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) { view->desktop = desktop; roots_surface->view = view; list_add(desktop->views, view); + view_initialize(view); } |