Fix window size

This commit is contained in:
Andrea Cavalli 2021-09-12 15:26:27 +02:00
parent 166cc13199
commit 55095a960b
2 changed files with 3 additions and 3 deletions

View File

@ -682,7 +682,7 @@ xwl_output_create(struct xwl_screen *xwl_screen, uint32_t id)
RROutputSetConnection(xwl_output->randr_output, RR_Connected);
RRTellChanged(xwl_screen->screen);
xwl_output->scale = 1;
xwl_output->scale = 2;
/* We want the output to be in the list as soon as created so we can
* use it when binding to the xdg-output protocol...

View File

@ -694,7 +694,7 @@ xwl_resize_window(WindowPtr window,
xwl_window = xwl_window_from_window(window);
screen->ResizeWindow = xwl_screen->ResizeWindow;
(*screen->ResizeWindow) (window, x, y, xwl_scale_to(xwl_screen, width), xwl_scale_to(xwl_screen, height), sib);
(*screen->ResizeWindow) (window, x, y, width, height, sib);
xwl_screen->ResizeWindow = screen->ResizeWindow;
screen->ResizeWindow = xwl_resize_window;
@ -820,8 +820,8 @@ xwl_window_post_damage(struct xwl_window *xwl_window)
}
#endif
wl_surface_attach(xwl_window->surface, buffer, 0, 0);
wl_surface_set_buffer_scale(xwl_window->surface, xwl_screen->global_output_scale);
wl_surface_attach(xwl_window->surface, buffer, 0, 0);
/* Arbitrary limit to try to avoid flooding the Wayland
* connection. If we flood it too much anyway, this could