minimize redraw events after resizing/moving windows in multiwindow mode

Oliver Schmidt oschmidt-mailinglists@gmx.de
Sat Aug 20 22:11:00 GMT 2011


Hi,

in multiwindow mode the modal moving/resizing of windows causes a lot of 
redraw events send to the X clients after the userse releases the mouse 
button. During the moving/resizing client windows are not redrawn as 
long as the mouse button is pressed. But all redraw/resizing events are 
queued and executed step after step after moving/resizing ends.

Some clients collect and combine multiple redraw or resizing events, 
other clients (e.g. xterm) simply execute each redraw or sizing event.

The enclosed patch minimizes the events for clients to only one event 
after the user releases the mouse button to end the moving/resizing. 
This improves the user experience and reduces strange screen flickerings 
especially on slow platforms.

The enclosed patch modifies winmultiwindowwndproc.c such that the 
windows events WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE are considered that 
are send from windows if the modal window resizing/moving begins or 
ends. Only after WM_EXITSIZEMOVE the redraw/resizing is executed. The 
patch is against the sources of xserver-cygwin version 1.10.3-1.

Best regards,
Oliver
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch04.txt
URL: <http://cygwin.com/pipermail/cygwin-xfree/attachments/20110820/0041f064/attachment.txt>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


More information about the Cygwin-xfree mailing list