Fix window size
This commit is contained in:
parent
166cc13199
commit
55095a960b
|
@ -682,7 +682,7 @@ xwl_output_create(struct xwl_screen *xwl_screen, uint32_t id)
|
||||||
RROutputSetConnection(xwl_output->randr_output, RR_Connected);
|
RROutputSetConnection(xwl_output->randr_output, RR_Connected);
|
||||||
RRTellChanged(xwl_screen->screen);
|
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
|
/* 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...
|
* use it when binding to the xdg-output protocol...
|
||||||
|
|
|
@ -694,7 +694,7 @@ xwl_resize_window(WindowPtr window,
|
||||||
xwl_window = xwl_window_from_window(window);
|
xwl_window = xwl_window_from_window(window);
|
||||||
|
|
||||||
screen->ResizeWindow = xwl_screen->ResizeWindow;
|
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;
|
xwl_screen->ResizeWindow = screen->ResizeWindow;
|
||||||
screen->ResizeWindow = xwl_resize_window;
|
screen->ResizeWindow = xwl_resize_window;
|
||||||
|
|
||||||
|
@ -820,8 +820,8 @@ xwl_window_post_damage(struct xwl_window *xwl_window)
|
||||||
}
|
}
|
||||||
#endif
|
#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_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
|
/* Arbitrary limit to try to avoid flooding the Wayland
|
||||||
* connection. If we flood it too much anyway, this could
|
* connection. If we flood it too much anyway, this could
|
||||||
|
|
Loading…
Reference in New Issue