mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-04-10 06:11:54 +10:00
wm: add nullptr guard to WindowManager::screenProjection
This commit is contained in:
parent
49d4f46cf1
commit
ad5fd9116e
1 changed files with 2 additions and 0 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue