diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-24 12:00:43 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-24 12:00:43 -0400 |
commit | a3f27546681a6a92e1e37ed7692428c36b486a8e (patch) | |
tree | c5b6b97c229c07117ff2331a3bf21bc83eb42077 /rootston | |
parent | c666d34d2d09d8a3536901881ef31450fcdf696a (diff) |
xwm: add surface to rootston on surface commit
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/desktop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c index 40d088b8..30b5a519 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -99,10 +99,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; } |