From 74ca81cc7942aa93e796ca794185675bae57003d Mon Sep 17 00:00:00 2001 From: Shemig Date: Sat, 17 Jun 2023 19:49:37 +0300 Subject: [PATCH] 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 --- src/events/Monitors.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp index 2360be56c..23b41667a 100644 --- a/src/events/Monitors.cpp +++ b/src/events/Monitors.cpp @@ -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."); }