mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-12-26 03:09:49 +01:00
fix crash in findWindowAtCursor
This commit is contained in:
parent
53dcfa4646
commit
d237d4cab4
1 changed files with 3 additions and 0 deletions
|
@ -888,6 +888,9 @@ void CWindowManager::setEffectiveSizePosUsingConfig(CWindow* pWindow) {
|
|||
CWindow* CWindowManager::findWindowAtCursor() {
|
||||
Vector2D cursorPos = getCursorPos();
|
||||
|
||||
if (!getMonitorFromCursor())
|
||||
return nullptr;
|
||||
|
||||
const auto WORKSPACE = activeWorkspaces[getMonitorFromCursor()->ID];
|
||||
|
||||
for (auto& window : windows) {
|
||||
|
|
Loading…
Reference in a new issue