diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-10-29 11:02:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-29 11:02:27 -0400 |
commit | 9a3c94b608663a4465ff528709d732699ac7af80 (patch) | |
tree | 8b76fcdbf82ee92ef19504d4a9c0e3abc43f8e1c /rootston/desktop.c | |
parent | 50e86a0efa43fa72bd7d8c2dfc2d124052f74823 (diff) | |
parent | c01248cf17b0556145d973449d0b12cad0b96a8c (diff) |
Merge pull request #331 from acrisci/feature/xwm-rewrite
xwayland window manager fixes
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r-- | rootston/desktop.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c index a1d8a632..f93d1df8 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -98,10 +98,10 @@ bool view_center(struct roots_view *view) { int width, height; wlr_output_effective_resolution(output, &width, &height); - view->x = (double)(width - size.width) / 2 - + l_output->x; - view->y = (double)(height - size.height) / 2 - + l_output->y; + double view_x = (double)(width - size.width) / 2 + l_output->x; + double view_y = (double)(height - size.height) / 2 + l_output->y; + + view_set_position(view, view_x, view_y); return true; } @@ -111,7 +111,6 @@ void view_setup(struct roots_view *view) { struct roots_input *input = view->desktop->server->input; set_view_focus(input, view->desktop, view); - wlr_seat_keyboard_notify_enter(input->wl_seat, view->wlr_surface); } void view_teardown(struct roots_view *view) { |