winex11.drv: Disable WM while positioning window (TRY 2)

Peter Dons Tychsen donpedro at tdcadsl.dk
Mon Oct 5 17:21:00 CDT 2009


Hello,

Changes from TRY1:
* Only use this code-path if necessary (managed windows). Prevents
corrupting the override_redirect bit.

This fixes:
http://bugs.winehq.org/show_bug.cgi?id=15346

Theory:

As documented here:
http://tronche.com/gui/x/xlib/window/attributes/override-redirect.html

We cannot use the X API to move the window, as the WM might limit or
interfere with the movement in many ways. An example is that Wine cannot
move a window (with SetWindowPos) partially out of the desktop left-ward
in Metacity or Compiz.

As documented in the link above, overriding the WM with
override_redirect temporarily fixes the problem.

Thanks,

/pedro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: disable_wm_while_positioning.patch
Type: text/x-patch
Size: 1548 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091006/f26bd6b1/attachment.bin>


More information about the wine-patches mailing list