aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-07-22 02:57:38 +0200
committerdec05eba <dec05eba@protonmail.com>2023-07-22 02:57:38 +0200
commit22a0a01553debd549e1f1f0058bc516cec28196b (patch)
tree3840935de5493e0633de18e55d0e26d4655546d3 /src/main.cpp
parentfc316750b81b870717e20cf00e09e0da159b1258 (diff)
AMD/Intel capture cursor
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 1 insertions, 3 deletions
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;