diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-07-22 04:12:02 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-07-22 04:12:02 +0200 |
commit | 60de2c47bef3f6ad805c3d0ec0cffa217149e525 (patch) | |
tree | c3f0c4cfe9279c4cbf03d7b8f52b6fa2248dc1dc /kms | |
parent | 22a0a01553debd549e1f1f0058bc516cec28196b (diff) |
Use correct offset for combined plane monitor capture
Diffstat (limited to 'kms')
-rw-r--r-- | kms/server/kms_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kms/server/kms_server.c b/kms/server/kms_server.c index 33f5dd4..4184fbe 100644 --- a/kms/server/kms_server.c +++ b/kms/server/kms_server.c @@ -315,9 +315,9 @@ static int kms_get_fb(gsr_drm *drm, gsr_kms_response *response) { response->fds[response->num_fds].pixel_format = drmfb->pixel_format; response->fds[response->num_fds].modifier = drmfb->modifier; response->fds[response->num_fds].connector_id = drm->connector_ids[i]; - response->fds[response->num_fds].is_combined_plane = drmfb_has_multiple_handles(drmfb); response->fds[response->num_fds].is_cursor = is_cursor; - if(response->fds[response->num_fds].is_cursor) { + response->fds[response->num_fds].is_combined_plane = !is_cursor && drmfb_has_multiple_handles(drmfb); + if(is_cursor) { response->fds[response->num_fds].x = x; response->fds[response->num_fds].y = y; response->fds[response->num_fds].src_w = 0; |