mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 21:06:01 +01:00
wl-compositor: don't send enter to defunct output globals
This commit is contained in:
parent
8a68199a0c
commit
cff0123ce6
1 changed files with 5 additions and 0 deletions
|
@ -221,6 +221,11 @@ void CWLSurfaceResource::enter(SP<CMonitor> monitor) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (PROTO::outputs.at(monitor->szName)->isDefunct()) {
|
||||
LOGM(ERR, "enter() called on a defunct output global");
|
||||
return;
|
||||
}
|
||||
|
||||
auto output = PROTO::outputs.at(monitor->szName)->outputResourceFrom(pClient);
|
||||
|
||||
if (!output || !output->getResource() || !output->getResource()->resource()) {
|
||||
|
|
Loading…
Reference in a new issue