aboutsummaryrefslogtreecommitdiff
path: root/include/WindowUtils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/WindowUtils.hpp')
-rw-r--r--include/WindowUtils.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/WindowUtils.hpp b/include/WindowUtils.hpp
index d17c0fd..c8806df 100644
--- a/include/WindowUtils.hpp
+++ b/include/WindowUtils.hpp
@@ -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);
} \ No newline at end of file