aboutsummaryrefslogtreecommitdiff
path: root/include/WindowUtils.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-28 15:11:50 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-28 15:11:50 +0100
commit2ea0a921e8d0c100d5f894536a93f0dfdf45f67b (patch)
tree1f50796f39afc11b6c4e5ba948175b27ad0734a1 /include/WindowUtils.hpp
parentece3d02e0a34d7a90d3e3d21fc426f4954ddfe86 (diff)
Fix restore portal session option not working, close other notifications when showing a new one
Diffstat (limited to 'include/WindowUtils.hpp')
-rw-r--r--include/WindowUtils.hpp13
1 files changed, 13 insertions, 0 deletions
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 <string>
+#include <X11/Xlib.h>
+
+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