mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 16:25:59 +01:00
return front when monitor from vector fails
This commit is contained in:
parent
f794c91293
commit
3f84dac599
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue