Re: Problem with QWidget-mapToGlobal()

2011-07-27 Thread Sean Harmer
On 26/07/2011 22:55, Shaun Reich wrote: I have the same problem with master and Qt 4.7. Clicking the windeco icon on a window which is on either screen results in the menu displaying as far left on the left screen, and the top of the screen + (heightOfTitlebar) it seems. Simply right-clicking

Problem with QWidget-mapToGlobal()

2011-07-26 Thread Michael Jansen
Hi If i open the window menu (alt+f3) with the mouse the window shows up in the top left corner of my screen. The reason is that the following code from workspace/kwin/libkdecorations/kcommondecoration.cpp line 706 QRect menuRect = m_button[MenuButton]-rect(); QPoint menutop =

Re: Problem with QWidget-mapToGlobal()

2011-07-26 Thread Till Adam
On Tuesday 26 July 2011 09:34:57 Michael Jansen wrote: The mapToGlobal() call is supposed to map the coordinates to screen coordinates as far i can see. But it does not do that. It always returns some small values like We've seen this fail in Kontact mobile in situations where the widget was

Re: Problem with QWidget-mapToGlobal()

2011-07-26 Thread Shaun Reich
I have the same problem with master and Qt 4.7. Clicking the windeco icon on a window which is on either screen results in the menu displaying as far left on the left screen, and the top of the screen + (heightOfTitlebar) it seems. Simply right-clicking the titlebar itself results in an incorrect