From 654647f7b3cdeaf2f22df0b6744b3d63fb12bc0e Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 9 Apr 2023 19:05:43 +0100 Subject: [PATCH] internal: gather monitor size in mode --- src/events/Events.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/events/Events.cpp b/src/events/Events.cpp index 0fb2a31..0222710 100644 --- a/src/events/Events.cpp +++ b/src/events/Events.cpp @@ -6,7 +6,9 @@ void Events::geometry(void *data, wl_output *output, int32_t x, int32_t y, int32 } void Events::mode(void *data, wl_output *output, uint32_t flags, int32_t width, int32_t height, int32_t refresh) { - // ignored + const auto PMONITOR = (SMonitor*)data; + + PMONITOR->size = Vector2D(width, height); } void Events::done(void *data, wl_output *wl_output) { @@ -14,7 +16,7 @@ void Events::done(void *data, wl_output *wl_output) { PMONITOR->readyForLS = true; - g_pHyprpaper->recheckAllMonitors(); + g_pHyprpaper->tick(true); } void Events::scale(void *data, wl_output *wl_output, int32_t scale) {