diff options
| author | Shemig <hemigilad@gmail.com> | 2023-06-17 19:49:37 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-17 18:49:37 +0200 |
| commit | 74ca81cc7942aa93e796ca794185675bae57003d (patch) | |
| tree | 7d366e7f7560705b1c7a536b35b4810905dd2598 /src | |
| parent | 5ac625d7bdff6b6318058f396f0fa1641bb6e807 (diff) | |
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/events/Monitors.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp index 2360be56..23b41667 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."); } |
