summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/xwayland/xwayland-output.c6
-rw-r--r--hw/xwayland/xwayland-output.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/hw/xwayland/xwayland-output.c b/hw/xwayland/xwayland-output.c
index e947ca090..349af302b 100644
--- a/hw/xwayland/xwayland-output.c
+++ b/hw/xwayland/xwayland-output.c
@@ -1155,6 +1155,9 @@ xwl_randr_add_modes_fixed(struct xwl_output *xwl_output,
return FALSE;
}
+ xwl_output->mode_width = current_width;
+ xwl_output->mode_height = current_height;
+
nmodes = 0;
current = 0;
@@ -1192,6 +1195,9 @@ xwl_output_set_mode_fixed(struct xwl_output *xwl_output, RRModePtr mode)
{
struct xwl_screen *xwl_screen = xwl_output->xwl_screen;
+ xwl_output->mode_width = mode->mode.width;
+ xwl_output->mode_height = mode->mode.height;
+
update_screen_size(xwl_screen, mode->mode.width, mode->mode.height);
RRCrtcNotify(xwl_output->randr_crtc, mode, 0, 0, RR_Rotate_0,
diff --git a/hw/xwayland/xwayland-output.h b/hw/xwayland/xwayland-output.h
index 24b118dfd..68889c59d 100644
--- a/hw/xwayland/xwayland-output.h
+++ b/hw/xwayland/xwayland-output.h
@@ -54,6 +54,7 @@ struct xwl_output {
struct zxdg_output_v1 *xdg_output;
uint32_t server_output_id;
int32_t x, y, width, height, refresh;
+ int32_t mode_width, mode_height;
Rotation rotation;
Bool wl_output_done;
Bool xdg_output_done;