Hi,
There seems to be a bug regarding popup and menu placement with qt4 applications and Xinerama -- all popups appear on the primary display. You can recreate this with:
# Make a fake display
Xnest :1 -ac -geometry 1024x768+0+0 &
# Load openbox with simulated xinerama
DISPLAY=:1 ./openbox/openbox --debug-xinerama &
# Load an application that exhibits the problem (qtconfig-qt4 4.4.3-1)
DISPLAY=:1 qtconfig-qt4
When the qtconfig window is in the left half of the screen, menus work fine (see attached: good.png). When the qtconfig window is in the right half of the screen, menus appear in the wrong spot (see attached: bad.png).
Qt menu positions are controlled by Qt itself. Openbox is not really involved. I'd like to know if this still occurs, and if it does, does it happen in any other window manager (or when youre not running one at all?).
Qt menus are working okay in Xinerama for me regardless, so I'm going to mark this resolved unless I hear otherwise.
The above test case still shows the problem for me. But it's a bit hard to track down. The real test case that I have for this problem is using the Cadsoft Eagle layout editor (closed source, free download at http://www.cadsoftusa.com/download.htm). The problems started when they switched to qt4 in their binaries.
1) Real X with xinerama + openbox + eagle 5.6: Broken
2) Real X with xinerama + metacity + eagle 5.6: Fine
3) Real X with xinerama + openbox + qtconfig-qt4: Fine
4) Xnest + openbox --debug-xinerama + qtconfig-qt4: Broken
I was hoping that if we can fix the cause of the bug when running inside Xnest, then maybe the Eagle bug would go away as well.
Currently my workaround is to switch to Metacity whenever I use Eagle.
I was able to reproduce the problem with --debug-xinerama and Xephyr. This behaviour is fixed by commit 3c688bc4a75436a457d3ce693eda6bd6b329412f. (Good catch on the bug relationship, mikachu.) So it will be fixed in the next release. Thanks for your input!
Created attachment 2063 [details] Correct menu placement, when parent is on the primary Xinerama screen
Created attachment 2064 [details] Bad menu placement, when parent is on the secondary Xinerama screen