2006-11-29 Chris Toshok <toshok@ximian.com>
authorChris Toshok <toshok@novell.com>
Wed, 29 Nov 2006 21:13:04 +0000 (21:13 -0000)
committerChris Toshok <toshok@novell.com>
Wed, 29 Nov 2006 21:13:04 +0000 (21:13 -0000)
commit7a6d6984969d34f3c48e7f3ce59488e55b77bc3d
tree223b028ed2d4b8a44cf9a93e767425438f348abd
parentc39556981c9255c2784331b4dd7e5c4f33aaf627
2006-11-29  Chris Toshok  <toshok@ximian.com>

* X11ThreadQueue.cs (EnqueueUnlocked): add the switch motionnotify
compression/NeedDispatchIdle assignment found in X11Hwnd here.
(RemovePaintUnlocked): nuke
(AddPaintUnlocked): nuke
(AddConfigureUnlocked): rename to AddConfigure.

Add some debug stuff to HwndEventQueue so we can see the stack
trace of where the hwnd was added to the queue, in case we somehow
try to add it multiple times.

* X11Hwnd.cs (AddExpose): there's no need for this to have locks
around it - it should only ever be called from operations on the
hwnd's thread (from ScrollWindow, from GetMessage, from
Invalidate).
(AddConfigureNotify): same goes here.
(HandleConfigureNotify): remove configure_lock reference.
(EnqueueEvent): nuke this.
(PaintEventStart): remove locking.
(ScrollWindow): remove locking.

also, remove all references to
AddPaintUnlocked/RemovePaintUnlocked/AddConfigureUnlocked.  since
we don't need to lock around them, there's not need.

* X11Display.cs (XEventThread) switch from hwnd.EnqueueEvent to
hwnd.Queue.Enqueue.

svn path=/trunk/mcs/; revision=68700
mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/X11Display.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/X11Hwnd.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/X11ThreadQueue.cs