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.
This commit is contained in:
lkn 2026-06-28 00:38:18 +02:00
parent 6011f4226f
commit 958bb8f4a9
1 changed files with 3 additions and 0 deletions

View File

@ -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)