diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-11-09 00:39:34 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-11-09 00:39:34 +0100 |
commit | e647d0c4bcbd7001b81a7a3618987e220615f2d6 (patch) | |
tree | fc839cefeb725df090631c597d0f94018780332c /src/capture/kms.c | |
parent | 76c565684f0bec0ac02062cba134abd0dd3ce1aa (diff) |
Revert x11 drm cursor switcharoo
Diffstat (limited to 'src/capture/kms.c')
-rw-r--r-- | src/capture/kms.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/capture/kms.c b/src/capture/kms.c index fd85134..6f021b9 100644 --- a/src/capture/kms.c +++ b/src/capture/kms.c @@ -638,11 +638,11 @@ static int gsr_capture_kms_capture(gsr_capture *cap, AVFrame *frame, gsr_color_c // the cursor plane is not available when the cursor is on the monitor controlled by the nvidia device. // TODO: This doesn't work properly with software cursor on x11 since it will draw the x11 cursor on top of the cursor already in the framebuffer. // Detect if software cursor is used on x11 somehow. - if(cursor_drm_fd) { - render_drm_cursor(self, color_conversion, cursor_drm_fd, target_pos, texture_rotation, output_size); - } else if(self->is_x11) { + if(self->is_x11) { const vec2i cursor_monitor_offset = self->capture_pos; render_x11_cursor(self, color_conversion, cursor_monitor_offset, target_pos, output_size); + } else if(cursor_drm_fd) { + render_drm_cursor(self, color_conversion, cursor_drm_fd, target_pos, texture_rotation, output_size); } } |