wm: add nullptr guard to WindowManager::screenProjection

This commit is contained in:
outfoxxed 2026-04-04 13:51:32 -07:00
parent 49d4f46cf1
commit ad5fd9116e
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -21,6 +21,8 @@ WindowManager* WindowManager::instance() {
}
ScreenProjection* WindowManager::screenProjection(QuickshellScreenInfo* screen) {
if (!screen) return nullptr;
auto* qscreen = screen->screen;
auto it = this->mScreenProjections.find(qscreen);
if (it != this->mScreenProjections.end()) {