fix position of popup windows

This fixes a long standing bug: On a multihead setup, some floating
child windows like file dialogs always appeared on screen 0 regardless
of the screen that had the focus.  The position calculation for
floating windows was wrong and did not take the active screen's
positionnal offset into account.
Merge branch 'master' into mitch