diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-01-06 22:59:47 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-01-06 22:59:47 +0100 |
commit | ee123ceb0a52331764901386d404a53aead65c23 (patch) | |
tree | b631abc8430d4eb0cfdf30c6b5d1cd953bb8d095 /include | |
parent | f2544020b3dba84ec71ae3b19ed13721d81ffd17 (diff) |
Fix ui being on incorrect monitor on gnome and sway
Diffstat (limited to 'include')
-rw-r--r-- | include/WindowUtils.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/WindowUtils.hpp b/include/WindowUtils.hpp index e647785..d17c0fd 100644 --- a/include/WindowUtils.hpp +++ b/include/WindowUtils.hpp @@ -1,5 +1,6 @@ #pragma once +#include <mglpp/system/vec.hpp> #include <string> #include <X11/Xlib.h> @@ -11,4 +12,8 @@ namespace gsr { 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); }
\ No newline at end of file |