mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 21:35:58 +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() {
|
CWindow* CWindowManager::findWindowAtCursor() {
|
||||||
Vector2D cursorPos = getCursorPos();
|
Vector2D cursorPos = getCursorPos();
|
||||||
|
|
||||||
|
if (!getMonitorFromCursor())
|
||||||
|
return nullptr;
|
||||||
|
|
||||||
const auto WORKSPACE = activeWorkspaces[getMonitorFromCursor()->ID];
|
const auto WORKSPACE = activeWorkspaces[getMonitorFromCursor()->ID];
|
||||||
|
|
||||||
for (auto& window : windows) {
|
for (auto& window : windows) {
|
||||||
|
|
Loading…
Reference in a new issue