http://bugs.winehq.org/show_bug.cgi?id=10359
Dan Roberts Ademan555@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Ademan555@gmail.com
--- Comment #27 from Dan Roberts Ademan555@gmail.com 2008-02-28 01:37:28 --- I just tested to confirm the source.
With my top panel set to 24px, the offset into the steam window was about 24px. When i set the height to 48, the offset was ~48. With no top panel at all, there was indeed no offset.
As someone said before, we're probably missing a message we need. For anyone unfamiliar, programs can only send position REQUESTS to the window manager, and they may grant them, they may not, whatever, in this case it looks like the window manager *sorta* grants it, and there should be a message associated with this.
I did a bit of reading. http://tronche.com/gui/x/icccm/sec-4.html section 4.1.5 covers this behavior. A ConfigureNotify event should be recieved so long as the window was setup with the StructureNotify mask. But you'll notice that they mention the TranslateCoordinate() function, which will ask the window manager to change the coordinate from one space to another (i assume "absolute" space to the toplevel window's space)
I guess what you were saying earlier Vitaliy was that we ARE in fact recieving the ConfigureNotify event, but it's in a different process that's not available to this window somehow... But this brings me to my point really... why do we need to know where windows are? The window manager is supposed to handle all pointer redirection not client windows... (I'm sure there's a good reason for it, and I'll look into it, but it doesn't make sense to me at the moment)