aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-19 19:22:05 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-19 19:22:05 +0200
commit1fca7080eb15bca17ee05b13399088e1d4930345 (patch)
treeb666160923beada62e79663aed8f1eee3579c133 /src
parent78e4620d9c87493509ff5bda2de11b7c36320287 (diff)
comment
Diffstat (limited to 'src')
-rw-r--r--src/capture/kms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/capture/kms.c b/src/capture/kms.c
index eb4cac1..ce50d31 100644
--- a/src/capture/kms.c
+++ b/src/capture/kms.c
@@ -522,6 +522,8 @@ static int gsr_capture_kms_capture(gsr_capture *cap, AVFrame *frame, gsr_color_c
if(self->params.record_cursor) {
gsr_kms_response_item *cursor_drm_fd = find_cursor_drm_if_on_monitor(self, drm_fd->connector_id, capture_is_combined_plane);
+ // The cursor is handled by x11 on x11 instead of using the cursor drm plane because on prime systems with a dedicated nvidia gpu
+ // the cursor plane is not available when the cursor is on the monitor controlled by the nvidia device.
if(self->is_x11)
render_x11_cursor(self, color_conversion, capture_pos, target_x, target_y);
else if(cursor_drm_fd)