applet/systemtray: show the popup menu in the same position for applets and SNI
This extracts the code in showPlasmoidMenu
and showStatusNotifierContextMenu
to calculate the position for popup menu, into a common showContextMenu
method, so they show the menu in the same position.
This changes the popup menu for applets to show above the icon in expanded view, instead of below the icon.
Edited by Jin Liu