Fix restore portal session option not working, close other notifications when showing a new one

This commit is contained in:
dec05eba
2024-11-28 15:11:50 +01:00
parent ece3d02e0a
commit 2ea0a921e8
9 changed files with 353 additions and 112 deletions

13
include/WindowUtils.hpp Normal file
View File

@@ -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);
}