diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-11-08 20:52:08 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-11-08 20:52:08 +0100 |
commit | 70fced3889b4c15044041b960ab9d6be9b697f5e (patch) | |
tree | ecf6c4d2119e1c1d723baff00c5a371271247a3c /src/damage.c | |
parent | 0686b924def291323c94f8d26d96fd0ef9d854c4 (diff) |
x11: fix correct monitor capture size when output is scaled
Diffstat (limited to 'src/damage.c')
-rw-r--r-- | src/damage.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |