This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
minimize redraw events after resizing/moving windows in multiwindow mode
- From: Oliver Schmidt <oschmidt-mailinglists at gmx dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Sun, 21 Aug 2011 00:11:18 +0200
- Subject: minimize redraw events after resizing/moving windows in multiwindow mode
- Reply-to: cygwin-xfree at cygwin dot com
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
Attachment:
patch04.txt
Description: Text document
--
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/