diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-11-28 15:11:50 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-11-28 15:11:50 +0100 |
commit | 2ea0a921e8d0c100d5f894536a93f0dfdf45f67b (patch) | |
tree | 1f50796f39afc11b6c4e5ba948175b27ad0734a1 /include/WindowUtils.hpp | |
parent | ece3d02e0a34d7a90d3e3d21fc426f4954ddfe86 (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.hpp | 13 |
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 |