From 70fced3889b4c15044041b960ab9d6be9b697f5e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 8 Nov 2024 20:52:08 +0100 Subject: x11: fix correct monitor capture size when output is scaled --- src/damage.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/damage.c') diff --git a/src/damage.c b/src/damage.c index 8e62762..10f4ccd 100644 --- a/src/damage.c +++ b/src/damage.c @@ -188,6 +188,7 @@ static void gsr_damage_on_output_change(gsr_damage *self, XEvent *xev) { if(!screen_res) return; + // TODO: What about scaled output? look at for_each_active_monitor_output_x11_not_cached XRROutputInfo *out_info = XRRGetOutputInfo(self->egl->x11.dpy, screen_res, rr_output_change_event->output); if(out_info && out_info->crtc && out_info->crtc == self->monitor.monitor_identifier) { XRRCrtcInfo *crtc_info = XRRGetCrtcInfo(self->egl->x11.dpy, screen_res, out_info->crtc); -- cgit v1.2.3