diff options
| author | vaxerski <vaxry@vaxry.net> | 2024-05-29 09:34:18 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2024-05-29 09:34:25 +0200 |
| commit | a60c7283e677ed81a466d1c0c864c8a05e192cac (patch) | |
| tree | 5af5126dca3da7ff3c1a3d8e7a5564bda6e12a61 /src | |
| parent | ebf258788e46cd0320fb17138ba413f719180418 (diff) | |
xwayland: verify new xsurf is valid in prop reads
fixes #6250
Diffstat (limited to 'src')
| -rw-r--r-- | src/xwayland/XWM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xwayland/XWM.cpp b/src/xwayland/XWM.cpp index 9e308314..b0f8d6aa 100644 --- a/src/xwayland/XWM.cpp +++ b/src/xwayland/XWM.cpp @@ -210,7 +210,7 @@ void CXWM::readProp(SP<CXWaylandSurface> XSURF, uint32_t atom, xcb_get_property_ const auto XID = (xcb_window_t*)xcb_get_property_value(reply); XSURF->transient = XID; if (XID) { - if (const auto NEWXSURF = windowForXID(*XID); !lookupParentExists(XSURF, NEWXSURF)) { + if (const auto NEWXSURF = windowForXID(*XID); NEWXSURF && !lookupParentExists(XSURF, NEWXSURF)) { XSURF->parent = NEWXSURF; NEWXSURF->children.push_back(XSURF); } else |
