aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-11-10 08:21:23 -0500
committerDrew DeVault <sir@cmpwn.com>2017-11-10 08:21:23 -0500
commitaafb00a15fd84b6d40f2efa52333eea5633b14e5 (patch)
tree8b6c40bfc90b61bf857aed423af6a3e17f27fed6 /rootston/desktop.c
parent75fd9b8426953d98c57fc0f598bf3a3ace602c0c (diff)
Fix centering views on scaled outputs
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r--rootston/desktop.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index 2448ffac..78bd271a 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -136,8 +136,6 @@ bool view_center(struct roots_view *view) {
int width, height;
wlr_output_effective_resolution(output, &width, &height);
- width /= output->scale;
- height /= output->scale;
double view_x = (double)(width - box.width) / 2 + l_output->x;
double view_y = (double)(height - box.height) / 2 + l_output->y;