Fix window size
This commit is contained in:
parent
917a175474
commit
15c097d5b2
|
@ -229,8 +229,8 @@ xwl_window_enable_viewport(struct xwl_window *xwl_window,
|
|||
wp_viewport_set_source(xwl_window->viewport,
|
||||
wl_fixed_from_int(0),
|
||||
wl_fixed_from_int(0),
|
||||
wl_fixed_from_int(emulated_mode->width * xwl_window->xwl_screen->global_output_scale),
|
||||
wl_fixed_from_int(emulated_mode->height * xwl_window->xwl_screen->global_output_scale));
|
||||
wl_fixed_from_int(emulated_mode->width),
|
||||
wl_fixed_from_int(emulated_mode->height));
|
||||
wp_viewport_set_destination(xwl_window->viewport,
|
||||
xwl_output->width,
|
||||
xwl_output->height);
|
||||
|
@ -537,7 +537,7 @@ xwl_realize_window(WindowPtr window)
|
|||
return FALSE;
|
||||
|
||||
if (xwl_screen->rootless && !window->parent) {
|
||||
BoxRec box = { 0, 0, xwl_screen->width, xwl_screen->height };
|
||||
BoxRec box = { 0, 0, xwl_screen->width * xwl_screen->global_output_scale, xwl_screen->height * xwl_screen->global_output_scale};
|
||||
|
||||
RegionReset(&window->winSize, &box);
|
||||
RegionNull(&window->clipList);
|
||||
|
|
Loading…
Reference in New Issue