From 958bb8f4a9133ef8766c04d5c1ede80756b5c1a0 Mon Sep 17 00:00:00 2001 From: lkn Date: Sun, 28 Jun 2026 00:38:18 +0200 Subject: [PATCH] appicon: fix crash on right-click of dock icon without running app aicon->icon->owner is NULL for stored dock apps that aren't running. Add null check before dereferencing. --- src/appicon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/appicon.c b/src/appicon.c index 7c4a4d9..2a707ad 100644 --- a/src/appicon.c +++ b/src/appicon.c @@ -634,6 +634,9 @@ void appIconMouseDown(WObjDescriptor * desc, WBackendEvent * event) if (aicon->editing || WCHECK_STATE(WSTATE_MODAL)) return; + if (!aicon->icon->owner) + return; + if (IsDoubleClick(scr, event)) { /* Middle or right mouse actions were handled on first click */ if (event->u.button.button == Button1)