mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
Easier code path in appIconMouseDown
This commit is contained in:
committed by
Carlos R. Mafra
parent
971f611bad
commit
cbff60297e
@@ -547,10 +547,9 @@ void appIconMouseDown(WObjDescriptor * desc, XEvent * event)
|
|||||||
if (event->xbutton.button == Button2) {
|
if (event->xbutton.button == Button2) {
|
||||||
WApplication *wapp = wApplicationOf(aicon->icon->owner->main_window);
|
WApplication *wapp = wApplicationOf(aicon->icon->owner->main_window);
|
||||||
|
|
||||||
if (!wapp)
|
if (wapp)
|
||||||
return;
|
relaunchApplication(wapp);
|
||||||
|
|
||||||
relaunchApplication(wapp);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user