aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events/Monitors.cpp
diff options
context:
space:
mode:
authorShemig <[email protected]>2023-06-17 19:49:37 +0300
committerGitHub <[email protected]>2023-06-17 18:49:37 +0200
commit74ca81cc7942aa93e796ca794185675bae57003d (patch)
tree7d366e7f7560705b1c7a536b35b4810905dd2598 /src/events/Monitors.cpp
parent5ac625d7bdff6b6318058f396f0fa1641bb6e807 (diff)
downloadHyprland-74ca81cc7942aa93e796ca794185675bae57003d.tar.gz
Hyprland-74ca81cc7942aa93e796ca794185675bae57003d.zip
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 <[email protected]>
Diffstat (limited to 'src/events/Monitors.cpp')
-rw-r--r--src/events/Monitors.cpp5
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.");
}