mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-14 19:45:45 -07:00
return front when monitor from vector fails
This commit is contained in:
@@ -209,8 +209,8 @@ SMonitor* CCompositor::getMonitorFromVector(const Vector2D& point) {
|
||||
const auto OUTPUT = wlr_output_layout_output_at(m_sWLROutputLayout, point.x, point.y);
|
||||
|
||||
if (!OUTPUT) {
|
||||
Debug::log(WARN, "getMonitorFromVector: vector outside monitors??");
|
||||
return nullptr;
|
||||
Debug::log(WARN, "getMonitorFromVector: vector outside monitors? Returning front");
|
||||
return &m_lMonitors.front();
|
||||
}
|
||||
|
||||
return getMonitorFromOutput(OUTPUT);
|
||||
|
Reference in New Issue
Block a user