mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-24 18:29:48 +01:00
avoid crash on monitor unplug
This commit is contained in:
parent
93c35602ca
commit
36ac7e6c76
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ void Events::listener_monitorFrame(void* owner, void* data) {
|
|||
}
|
||||
|
||||
void Events::listener_monitorDestroy(void* owner, void* data) {
|
||||
CMonitor* pMonitor = nullptr;
|
||||
CMonitor* pMonitor = (CMonitor*)owner;
|
||||
|
||||
for (auto& m : g_pCompositor->m_vRealMonitors) {
|
||||
if (m->output == pMonitor->output) {
|
||||
|
|
Loading…
Reference in a new issue