diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-04-04 20:51:28 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-04-04 20:51:28 +0200 |
commit | 2e3adfc5100c4c273529d7e0ed1cba42f184395f (patch) | |
tree | 1342ecd7e0910c739739948d31114419ce22f1bd /src/WindowUtils.cpp | |
parent | 44f35f8f3b39892def66a2a0f15d3a261f0be778 (diff) |
Add option to capture the focused monitor
Diffstat (limited to 'src/WindowUtils.cpp')
-rw-r--r-- | src/WindowUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WindowUtils.cpp b/src/WindowUtils.cpp index 49fd65b..cf983db 100644 --- a/src/WindowUtils.cpp +++ b/src/WindowUtils.cpp @@ -520,7 +520,7 @@ namespace gsr { static void get_monitors_callback(const mgl_monitor *monitor, void *userdata) { std::vector<Monitor> *monitors = (std::vector<Monitor>*)userdata; - monitors->push_back({mgl::vec2i(monitor->pos.x, monitor->pos.y), mgl::vec2i(monitor->size.x, monitor->size.y)}); + monitors->push_back({mgl::vec2i(monitor->pos.x, monitor->pos.y), mgl::vec2i(monitor->size.x, monitor->size.y), std::string(monitor->name)}); } std::vector<Monitor> get_monitors(Display *dpy) { |