Invoking the context menu in the folder view background (right mouse click, not above an icon)
positions it too far to the bottom-right, when the side-bar and/or tool bars are active.
Expected behavior is that the context menu should be opened under the mouse pointer.
Tested on LibFM ver. 1.2.0-beta0 / libfm-gtk for gtk 2.0 / Lubuntu 13.04
The calculation for the folder view context menu position in src/gtk/fm-folder-view.c / function popup_position_func() was mixing tab pane and parent window coordinates. This was causing the view widget's relative position to be added twice when the parent window had active side pane or toolbars.
Please find attached patch for proposed fix.