mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 15:45:58 +01:00
Set last monitor when unset on monitor attach
This commit is contained in:
parent
87b8491294
commit
ab2c65e535
1 changed files with 3 additions and 0 deletions
|
@ -118,6 +118,9 @@ void Events::listener_newOutput(wl_listener* listener, void* data) {
|
||||||
if (!pMostHzMonitor || monitorRule.refreshRate > pMostHzMonitor->refreshRate)
|
if (!pMostHzMonitor || monitorRule.refreshRate > pMostHzMonitor->refreshRate)
|
||||||
pMostHzMonitor = PNEWMONITOR;
|
pMostHzMonitor = PNEWMONITOR;
|
||||||
//
|
//
|
||||||
|
|
||||||
|
if (!g_pCompositor->m_pLastMonitor) // set the last monitor if it isnt set yet
|
||||||
|
g_pCompositor->m_pLastMonitor = PNEWMONITOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Events::listener_monitorFrame(void* owner, void* data) {
|
void Events::listener_monitorFrame(void* owner, void* data) {
|
||||||
|
|
Loading…
Reference in a new issue