Skip to content

Commit 3fb4d09

Browse files
check that parent component is valid before trying to get the entity
1 parent 154be55 commit 3fb4d09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wayland/wlr_compositor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ map_pointer_to_surface(WlrServer* server, wlr_surface* surf)
225225
auto it = server->surface_map.find(surf);
226226
if (it != server->surface_map.end() && isValidWaylandAppComponent(server, it->second)) {
227227
auto& comp = server->registry->get<WaylandApp::Component>(it->second);
228-
if (comp.accessory) {
228+
if (comp.accessory && isValidWaylandAppComponent(server, comp.parent)) {
229229
auto& parentComp = server->registry->get<WaylandApp::Component>(comp.parent);
230230
if (parentComp.app) {
231231
int parentW = parentComp.app->getWidth();

0 commit comments

Comments
 (0)