Partial revert of Commit 302ec13: (#2539)

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:
Shemig 2023-06-17 19:49:37 +03:00 committed by GitHub
parent 5ac625d7bd
commit 74ca81cc79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,11 +57,6 @@ void Events::listener_newOutput(wl_listener* listener, void* data) {
return; return;
} }
if (OUTPUT->width <= 0 || OUTPUT->height <= 0) {
Debug::log(ERR, "New monitor has no dimensions?? Ignoring");
return;
}
if (g_pCompositor->m_bUnsafeState) { if (g_pCompositor->m_bUnsafeState) {
Debug::log(WARN, "Recovering from an unsafe state. May you be lucky."); Debug::log(WARN, "Recovering from an unsafe state. May you be lucky.");
} }