From 22a0a01553debd549e1f1f0058bc516cec28196b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 22 Jul 2023 02:57:38 +0200 Subject: AMD/Intel capture cursor --- src/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index cec3bca..c5dd33f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1389,8 +1389,7 @@ int main(int argc, char **argv) { follow_focused = true; } else if(contains_non_hex_number(window_str)) { - // TODO: wayland, not only drm (if wlroots) - if(wayland) { + if(wayland || gpu_inf.vendor != GSR_GPU_VENDOR_NVIDIA) { if(gsr_egl_supports_wayland_capture(&egl)) { gsr_monitor gmon; if(!get_monitor_by_name(&egl, GSR_CONNECTION_WAYLAND, window_str, &gmon)) { @@ -1472,7 +1471,6 @@ int main(int argc, char **argv) { gsr_capture_kms_vaapi_params kms_params; kms_params.egl = &egl; - kms_params.dpy = dpy; kms_params.display_to_capture = capture_target; kms_params.gpu_inf = gpu_inf; kms_params.card_path = card_path; -- cgit v1.2.3