mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
Fix rendering issues, wire up some xdg listeners
This commit is contained in:
parent
ce1936bc65
commit
a57d462926
4 changed files with 29 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue