From e3225bc62835c6accc18787c6038fc1dce2484fc Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 10 May 2025 17:10:59 +0200 Subject: Move dbus code to a separate process to allow gpu-screen-recorder to use cap_sys_nice for better recording performance on amd --- dbus/portal.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dbus/portal.h (limited to 'dbus/portal.h') diff --git a/dbus/portal.h b/dbus/portal.h new file mode 100644 index 0000000..6b93aa6 --- /dev/null +++ b/dbus/portal.h @@ -0,0 +1,17 @@ +#ifndef GSR_PORTAL_H +#define GSR_PORTAL_H + +typedef enum { + GSR_PORTAL_CAPTURE_TYPE_MONITOR = 1 << 0, + GSR_PORTAL_CAPTURE_TYPE_WINDOW = 1 << 1, + GSR_PORTAL_CAPTURE_TYPE_VIRTUAL = 1 << 2, + GSR_PORTAL_CAPTURE_TYPE_ALL = GSR_PORTAL_CAPTURE_TYPE_MONITOR | GSR_PORTAL_CAPTURE_TYPE_WINDOW | GSR_PORTAL_CAPTURE_TYPE_VIRTUAL +} gsr_portal_capture_type; + +typedef enum { + GSR_PORTAL_CURSOR_MODE_HIDDEN = 1 << 0, + GSR_PORTAL_CURSOR_MODE_EMBEDDED = 1 << 1, + GSR_PORTAL_CURSOR_MODE_METADATA = 1 << 2 +} gsr_portal_cursor_mode; + +#endif /* GSR_PORTAL_H */ -- cgit v1.2.3-70-g09d2