From 2ea0a921e8d0c100d5f894536a93f0dfdf45f67b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 28 Nov 2024 15:11:50 +0100 Subject: Fix restore portal session option not working, close other notifications when showing a new one --- include/WindowUtils.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 include/WindowUtils.hpp (limited to 'include/WindowUtils.hpp') diff --git a/include/WindowUtils.hpp b/include/WindowUtils.hpp new file mode 100644 index 0000000..93d0dee --- /dev/null +++ b/include/WindowUtils.hpp @@ -0,0 +1,13 @@ +#pragma once + +#include +#include + +namespace gsr { + enum class WindowCaptureType { + FOCUSED, + CURSOR + }; + + std::string get_focused_window_name(Display *dpy, WindowCaptureType window_capture_type); +} \ No newline at end of file -- cgit v1.2.3