On a multihead Xinerama setup, menus in qt4 apps are displayed in wrong places

Bug #135882 reported by Stefan Freyr
28
Affects Status Importance Assigned to Milestone
qt4-x11 (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Feisty by Stefan Freyr
Nominated for Gutsy by Stefan Freyr

Bug Description

Binary package hint: libqt4-core

I have a Xinerama dualhead setup. When I try to get popup or pulldown menus in applications that use qt4, the menus always appear on my primary screen even if the application is running on my secondary screen.

From what I gather from the QT IRC channel, this is because of some broken patches that were applied to the packages. They also said that this problem has been resolved in the latest unstable packages in Debian.

Related branches

Revision history for this message
Raphaël Doursenaud (rdoursenaud) wrote :

Confirmed here. Debian bug was Bug#433931. Fixed in Debian with qt4-x11/4.3.1-1.

Revision history for this message
Maor (maor-gm) wrote :

I can confirm here, dual screen using nvidia twinview and qt4 from 4.3.1-0ubuntu1.
pop up menu i always appear on screen 1 aligned to the right.

Revision history for this message
Emilio Scalise (emisca) wrote :

I'm also affected by this bug, nvidia twinview.
You should sync with debian's new version (4.3.1-2), preferable before gutsy release.

Thanks

Revision history for this message
Emilio Scalise (emisca) wrote :

I've compiled qt4-x11 4.3.1-2 from debian against feisty using pbuilder, and the problem goes away.

Bye

Revision history for this message
Andreas Ntaflos (daff) wrote :

For the record, and until this is fixed, an easy and dirty way to work around this bug is to download the Debian packages of libqt4-core [1] and libqt4-gui [2] and install them using dpkg -i. After the restart of an affected Qt4 application the problem is gone. If yet to notice any ill side effects of this method.

[1] e.g. http://packages.debian.org/sid/libqt4-core/i386/download
[2] e.g. http://packages.debian.org/sid/libqt4-gui/i386/download

Revision history for this message
Andreas Ntaflos (daff) wrote :

Apparently the broken patches are applied in the new versions provided by Ubuntu as well. I see the same menu placement behaviour with libqt4-(core|gui) in version 4.3.2-0ubuntu2. I have yet to try the updated Debian versions (see [1] and [2] in previous comment).

Revision history for this message
Stefan Freyr (stefan-freyr) wrote :

Andreas: When you install the debian packages, do you have to force them in? I tried installing them but got dependency errors. I really hate forcing packages onto my system :-(. Think I'll accept popups showing up on the wrong screen instead until this is fixed.

I don't get it though... are you saying that the broken patches are being applied to the QT packages in gutsy (due to be released in 10 days)? Come on... do they not know about this problem then or what??? Does anyone know who is responsible for the packaging? Would it be rude to send that person a direct email? I can't believe they'd deliberately allow the packages to go in like this?

Revision history for this message
Stefan Freyr (stefan-freyr) wrote :
Revision history for this message
Andreas Ntaflos (daff) wrote :

Stefan,

when installing the Debian packages for 4.3.1-1 (qt4-x11/4.3.1-1) I had no problems whatsoever, no need to force anything. Some development packages (libqt4-*-dev) I had to uninstall because they depended directly on the libqt4-core and -gui packages provided by Ubuntu but that was all.

I haven't tried the new Debian packages yet, will do so in the evening. But since you seem to have to force the installation I fear I am going to have the same problems.

I don't know who is responsible for the packaging or how or whether to contact them personally but seeing that this, and similar bugs haven't even been confirmed or assigned yet I have real doubts that the problem will be fixed within 10 days. But let's hope for the best.

I also find it odd that no Kubuntu developer seems to have a Xinerama or other dual-head setup and use at least one Qt4 application. After all the problem presents itself in a very non-subtle way.

Revision history for this message
Stefan Freyr (stefan-freyr) wrote :

I just sent an email to Jonathan Riddell, who I believe has something to do with these packages. I'm hoping to hear back from him but I pointed him towards this issue and asked him to confirm it and possibly even assign a priority to it. Now let's just hope for the best.

Revision history for this message
Jonathan Riddell (jr) wrote :

qt4-x11 (4.3.2-0ubuntu3) gutsy; urgency=low

  * Disable 00_0172-prefer-xrandr-over-xinerama.dpatch, causes menus
    to appear on the primary screen even when app is on a second screen
    Closes LP: #135882

 -- Jonathan Riddell <email address hidden> Mon, 08 Oct 2007 12:51:57 +0100

Changed in qt4-x11:
status: New → Fix Released
Revision history for this message
Stefan Freyr (stefan-freyr) wrote :

Kudos to Jonathan for the super fast response.

Since I'm still running feisty I can't test this fix but as I understand, new packages are being built as I type that will include a fix for this annoying problem in gutsy.

So those of you who have gutsy set up already... keep an eye out for version 4.3.2-0ubuntu3 of the qt4 packages. They should appear soon. Install them and take for a spin and report back here as soon as you can whether the problem was solved.

Revision history for this message
Andreas Ntaflos (daff) wrote :

Stefan,

no wonder you had problems manually installing the Debian packages; they worked fine for me since I run Gutsy, not Feisty. Anyway, will test once I'm home.

Thank you Jonathan for (hopefully) fixing this PITA! :) Much appreciated.

Revision history for this message
Andreas Ntaflos (daff) wrote :

Just to report back, 4.3.2-0ubuntu3 (on Gutsy) fixed the problem for me. Thanks Jonathan!

Revision history for this message
Stefan Freyr (stefan-freyr) wrote :

Brilliant.

Thanks Jonathan for the fix and thanks to Andreas for testing!

Behold the wonders of open source ;-)

Respect, Stefan Freyr.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.