mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2024-11-16 22:25:59 +01:00
internal: gather monitor size in mode
This commit is contained in:
parent
9a8a5738c6
commit
654647f7b3
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue