aboutsummaryrefslogtreecommitdiff
path: root/include/WindowUtils.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-02-10 18:22:21 +0100
committerdec05eba <dec05eba@protonmail.com>2025-02-10 18:22:21 +0100
commitf4e44cbef5dbbc2a2b71e7b9b70ee72d30b7c6a6 (patch)
treefba7a409ad73abc4b233c9dfd960f014c2df6b69 /include/WindowUtils.hpp
parent3d6354c642244cde272c328a31c72a0adba54999 (diff)
Prepare for sound. Fix game name being gsr-ui on wayland in some cases when saving video when the ui is open
Diffstat (limited to 'include/WindowUtils.hpp')
-rw-r--r--include/WindowUtils.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/WindowUtils.hpp b/include/WindowUtils.hpp
index c8806df..ddecaea 100644
--- a/include/WindowUtils.hpp
+++ b/include/WindowUtils.hpp
@@ -18,6 +18,8 @@ namespace gsr {
Window get_focused_window(Display *dpy, WindowCaptureType cap_type);
std::string get_focused_window_name(Display *dpy, WindowCaptureType window_capture_type);
+ std::string get_window_name_at_position(Display *dpy, mgl::vec2i position, Window ignore_window);
+ std::string get_window_name_at_cursor_position(Display *dpy, Window ignore_window);
mgl::vec2i get_cursor_position(Display *dpy, Window *window);
mgl::vec2i create_window_get_center_position(Display *display);
std::string get_window_manager_name(Display *display);