diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-25 15:49:10 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-11-25 15:49:10 -0500 |
commit | a57d46292694e388d74add7b0869bcafdb42b2bd (patch) | |
tree | 74b91247e749c1b67f89bd2271f31762b659545b /sway/desktop/output.c | |
parent | Arrange windows on desktop (diff) | |
download | sway-a57d46292694e388d74add7b0869bcafdb42b2bd.tar.gz sway-a57d46292694e388d74add7b0869bcafdb42b2bd.tar.zst sway-a57d46292694e388d74add7b0869bcafdb42b2bd.zip |
Fix rendering issues, wire up some xdg listeners
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 6 |
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) { | |||
27 | } | 27 | } |
28 | // TODO | 28 | // TODO |
29 | // - Deal with wlr_output_layout | 29 | // - Deal with wlr_output_layout |
30 | int width = sway_view->swayc->width; | 30 | int width = sway_view->width; |
31 | int height = sway_view->swayc->height; | 31 | int height = sway_view->height; |
32 | int render_width = width * wlr_output->scale; | 32 | int render_width = width * wlr_output->scale; |
33 | int render_height = height * wlr_output->scale; | 33 | int render_height = height * wlr_output->scale; |
34 | double ox = view->x, oy = view->y; | 34 | double ox = view->x, oy = view->y; |
@@ -122,6 +122,8 @@ void output_add_notify(struct wl_listener *listener, void *data) { | |||
122 | 122 | ||
123 | output->resolution.notify = output_resolution_notify; | 123 | output->resolution.notify = output_resolution_notify; |
124 | wl_signal_add(&wlr_output->events.resolution, &output->resolution); | 124 | wl_signal_add(&wlr_output->events.resolution, &output->resolution); |
125 | |||
126 | arrange_windows(output->swayc, -1, -1); | ||
125 | } | 127 | } |
126 | 128 | ||
127 | void output_remove_notify(struct wl_listener *listener, void *data) { | 129 | void output_remove_notify(struct wl_listener *listener, void *data) { |