Bug 284808 - In a dual screen setup, the right-click menu on window decoration has wrong positioning
Summary: In a dual screen setup, the right-click menu on window decoration has wrong p...
Status: RESOLVED DUPLICATE of bug 287561
Alias: None
Product: kwin
Classification: Plasma
Component: xrandr (show other bugs)
Version: git master
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 284876 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-23 20:08 UTC by Luca Beltrame
Modified: 2011-12-10 08:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot showing the issue (713.34 KB, image/png)
2011-10-23 20:08 UTC, Luca Beltrame
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Beltrame 2011-10-23 20:08:17 UTC
Created attachment 64814 [details]
Screenshot showing the issue

Version:           git master (using Devel) 
OS:                Linux

Setups in which the issue appears:

1. 2 x 1280x1024 monitors, primary on right, secondary on left
2. 1 x 1680x900 screen, rotated 90 degrees and 1 x 1920x1200 screen, primary

In both cases, right clicking on the window decoration to bring up the menu when on the right screen causes the context menu to appear on the left screen (see attached screenshot). 

Reproducible: Always

Steps to Reproduce:
1. Open a window on the right screen
2. Right click on decoration

Actual Results:  
Menu appears on the left screen

Expected Results:  
Menu appears where the mouse pointer is

This is on recent git master, and this has been observed with two different Radeon cards, running kernel 3.1 rc10 and Mesa 7.11.
Comment 1 Martin Flöser 2011-10-23 20:19:31 UTC
I cannot reproduce here and I am pretty sure the window gets positioned by Qt.
Comment 2 Luca Beltrame 2011-10-23 20:20:31 UTC
That may be a hint: I'm running a recent snapshot of Qt 4.8, so possibly a Qt bug?
Comment 3 Martin Flöser 2011-10-23 20:26:01 UTC
could be. I'm still on Qt 4.7. Any chance to verify with Qt 4.7?
Comment 4 Luca Beltrame 2011-10-23 20:27:57 UTC
Not at the moment, unfortunately, as the way I update KDE is tied to the Qt version I get.
Comment 5 Thomas Lübking 2011-10-24 19:25:03 UTC
*** Bug 284876 has been marked as a duplicate of this bug. ***
Comment 6 Jeffrey Bastian 2011-10-24 22:38:54 UTC
As mentioned in bug 284876, this is also a problem on single-monitor systems.  It's just really pronounced on a dual-monitor setup since the menu appears really far away (on the left) from a window on the right-monitor.

Fedora 16 Beta is currently shipping KDE 4.7.2 with qt-4.8.0-0.17.rc1.fc16.x86_64.

It's also interesting that the menu placement is relative to the cursor position when you right-click on the title bar.  That is, if you right-click near the left edge of the title-bar, the menu appears next to the left-edge of the monitor.  But if you right-click in the middle of the title-bar, say 100 pixels from the edge, the menu appears 100 pixels from the left-edge of the monitor.
Comment 7 Thomas Lübking 2011-10-25 21:13:28 UTC
It's likely still this one then: http://old.nabble.com/Problem-with-QWidget->mapToGlobal()-td32137926.html
Comment 8 Jeffrey Bastian 2011-10-25 21:29:18 UTC
Alt-F3 does bring up the window menu in the right spot.
Comment 9 Martin Flöser 2011-12-10 08:46:25 UTC
currently fixed in Qt.

*** This bug has been marked as a duplicate of bug 287561 ***