mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 23:49:49 +01:00
Fix crash when screen size is 0x0 (#2523) Reason: The disable of a monitor with 0x0 size is causing issuses with some users. https://github.com/hyprwm/Hyprland/issues/2537 Left the defensive code to resolve the crash. Will continue to investigate and find a solution for the dell xps disabled monitor Co-authored-by: giladsx <gilad@spectalix.com>
This commit is contained in:
parent
5ac625d7bd
commit
74ca81cc79
1 changed files with 0 additions and 5 deletions
|
@ -57,11 +57,6 @@ void Events::listener_newOutput(wl_listener* listener, void* data) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (OUTPUT->width <= 0 || OUTPUT->height <= 0) {
|
||||
Debug::log(ERR, "New monitor has no dimensions?? Ignoring");
|
||||
return;
|
||||
}
|
||||
|
||||
if (g_pCompositor->m_bUnsafeState) {
|
||||
Debug::log(WARN, "Recovering from an unsafe state. May you be lucky.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue