From fc2f6f4c500d0364d5dd5cf366be2fa8592f8469 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 10 Feb 2025 19:31:27 +0100 Subject: Better detect focused x11 window on wayland, properly get focused game name on wayland --- include/WindowUtils.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/WindowUtils.hpp') diff --git a/include/WindowUtils.hpp b/include/WindowUtils.hpp index ddecaea..99b45e9 100644 --- a/include/WindowUtils.hpp +++ b/include/WindowUtils.hpp @@ -3,6 +3,7 @@ #include #include #include +#include #include namespace gsr { @@ -16,6 +17,7 @@ namespace gsr { mgl::vec2i size; }; + std::optional get_window_title(Display *dpy, Window window); 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); -- cgit v1.2.3-70-g09d2