monitors: fix outputmgr nullptr crash (#4738)

This commit is contained in:
Alessio Molinari
2024-02-18 03:24:01 +01:00
committed by GitHub
parent 683a4b07c5
commit 7e8bcd675d
3 changed files with 13 additions and 2 deletions

View File

@@ -142,6 +142,7 @@ class CCompositor {
wlr_surface* vectorWindowToSurface(const Vector2D&, CWindow*, Vector2D& sl);
Vector2D vectorToSurfaceLocal(const Vector2D&, CWindow*, wlr_surface*);
CMonitor* getMonitorFromOutput(wlr_output*);
CMonitor* getRealMonitorFromOutput(wlr_output*);
CWindow* getWindowForPopup(wlr_xdg_popup*);
CWindow* getWindowFromSurface(wlr_surface*);
CWindow* getWindowFromHandle(uint32_t);