summaryrefslogtreecommitdiff
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2017-11-25 15:49:10 -0500
committerDrew DeVault <[email protected]>2017-11-25 15:49:10 -0500
commita57d46292694e388d74add7b0869bcafdb42b2bd (patch)
tree74b91247e749c1b67f89bd2271f31762b659545b /sway/desktop/output.c
parentce1936bc65d01502e3a5f8681bb039cb95e82e0c (diff)
Fix rendering issues, wire up some xdg listeners
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 033a4c44..99c74d89 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -27,8 +27,8 @@ static void output_frame_view(swayc_t *view, void *data) {
}
// TODO
// - Deal with wlr_output_layout
- int width = sway_view->swayc->width;
- int height = sway_view->swayc->height;
+ int width = sway_view->width;
+ int height = sway_view->height;
int render_width = width * wlr_output->scale;
int render_height = height * wlr_output->scale;
double ox = view->x, oy = view->y;
@@ -122,6 +122,8 @@ void output_add_notify(struct wl_listener *listener, void *data) {
output->resolution.notify = output_resolution_notify;
wl_signal_add(&wlr_output->events.resolution, &output->resolution);
+
+ arrange_windows(output->swayc, -1, -1);
}
void output_remove_notify(struct wl_listener *listener, void *data) {