Fix background not being transparent on sway when a wayland application is focused and opening the ui

This commit is contained in:
dec05eba
2025-01-17 13:18:40 +01:00
parent eb4ce76f01
commit a9637f87e7
6 changed files with 65 additions and 36 deletions

View File

@@ -2,6 +2,7 @@
#include <mglpp/system/vec.hpp>
#include <string>
#include <vector>
#include <X11/Xlib.h>
namespace gsr {
@@ -10,10 +11,16 @@ namespace gsr {
CURSOR
};
struct Monitor {
mgl::vec2i position;
mgl::vec2i size;
};
Window get_focused_window(Display *dpy, WindowCaptureType cap_type);
std::string get_focused_window_name(Display *dpy, WindowCaptureType window_capture_type);
mgl::vec2i get_cursor_position(Display *dpy, Window *window);
mgl::vec2i create_window_get_center_position(Display *display);
std::string get_window_manager_name(Display *display);
bool is_compositor_running(Display *dpy, int screen);
std::vector<Monitor> get_monitors(Display *dpy);
}