mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-11 02:05:59 +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) {
|
void Events::listener_monitorDestroy(void* owner, void* data) {
|
||||||
CMonitor* pMonitor = nullptr;
|
CMonitor* pMonitor = (CMonitor*)owner;
|
||||||
|
|
||||||
for (auto& m : g_pCompositor->m_vRealMonitors) {
|
for (auto& m : g_pCompositor->m_vRealMonitors) {
|
||||||
if (m->output == pMonitor->output) {
|
if (m->output == pMonitor->output) {
|
||||||
|
|
Loading…
Reference in a new issue