diff options
author | emersion <contact@emersion.fr> | 2017-11-21 20:58:15 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-11-21 20:58:15 +0100 |
commit | 3262661e1e77db11d7e4939aa377804046df43f5 (patch) | |
tree | a4bea1cdc6b09d0b3d1b761a1934e3eddeb4cbdb /rootston/desktop.c | |
parent | 5a664e1e46df78c10977a4a9ee0bc53e5acf3772 (diff) |
Fix HiDPI support
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r-- | rootston/desktop.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c index eb18e716..bb3af258 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -36,7 +36,7 @@ static void view_update_output(const struct roots_view *view, struct wlr_box box; view_get_box(view, &box); wl_list_for_each(output, &desktop->outputs, link) { - bool intersected = before->x != -1 && wlr_output_layout_intersects( + bool intersected = before != NULL && wlr_output_layout_intersects( desktop->layout, output->wlr_output, before->x, before->y, before->x + before->width, before->y + before->height); @@ -280,9 +280,7 @@ void view_setup(struct roots_view *view) { } view_center(view); - struct wlr_box before; - view_get_box(view, &before); - view_update_output(view, &before); + view_update_output(view, NULL); } static bool view_at(struct roots_view *view, double lx, double ly, |