* X11Display.cs: port over jackson's XplatUIX11.cs fix for DND
[mcs.git] / class / Managed.Windows.Forms / System.Windows.Forms.X11Internal / ChangeLog
blob68b3825d5d9895e758254adc4492216024d154fd
1 2007-01-30  Chris Toshok  <toshok@ximian.com>
3         * X11Display.cs: port over jackson's XplatUIX11.cs fix for DND
4         ButtonRelease handling.
6 2007-01-30  Chris Toshok  <toshok@ximian.com>
8         * X11Hwnd.cs: port over the XplatUIX11.cs patch for SetIcon.
10 2007-01-11  Chris Toshok  <toshok@ximian.com>
12         * X11Display.cs: don't send duplicate WM_ACTIVATE messages to the
13         initial form.
15 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
17         * X11Hwnd.cs, XplatUIX11-new.cs: 
18         - border_static field added, it will used to define when a
19         control theres 3D border but it must be static (thin).
20         - In GetWindowRectangle use Theme.BorderSize to calculate area 
21         instead of static value 1, by the way use BorderSize instead
22         Border3DSize when border_static is true.
23         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
25 2007-01-05  Chris Toshok  <toshok@ximian.com>
27         * X11ThreadQueue.cs: #ifdef out some spew.
29         * X11Display.cs: #ifdef out some spew, and comment out the calls
30         to XGrabServer in QueryPointer().  it's not good to need to do
31         this, but without it we seem to deadlock.
33 2007-01-03  Andreia Gaita  <avidigal@novell.com>
34         
35         XplatUIX11.cs (see main changelog)
36         X11Display.cs: Check for valid window handle.
38 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
40         * X11Display.cs:
41         * XplatUIX11-new.cs: Implemented GetOffscreenGraphics and 
42         change CreateOffscreenDrawable and DestroyOffscreenDrawable to
43         have the new correct signature.
44         
45 2006-12-25  Chris Toshok  <toshok@ximian.com>
47         * X11Display.cs: simplify GetMessage a lot.  remove the
48         paint/configure queue code from here, it's now in X11ThreadQueue.
49         reindent it by breaking out of the loop immediately if got_xevent
50         == false.
52         * X11ThreadQueue.cs: fix some of the the
53         threadqueue.Dequeue/display.GetMessage cross-linkages..  the only
54         remaining issue now (right here, anyway), is the WM_ENTERIDLE code
55         remaining in the GetMessage code.  it needs to somehow be linked
56         up with the OnIdle call...  maybe we need a special return value
57         which we return once before calling OnIdle and waiting on the
58         Monitor?
60         also, fix a bug in the PaintQueue code where the Dequeue method
61         was removing the Hwnd from the queue.  We only add an Hwnd once
62         regardless of how many of (pending_expose, pending_nc_expose) are
63         true, so we need to only remove it when both are false.  Once all
64         this is working we need to determine whether or not all this paint
65         queue stuff actually helps performance.
67 2006-12-12  Chris Toshok  <toshok@ximian.com>
69         * XplatUIX11.cs: add working implementation for
70         DrawReversibleFrame, DrawReversibleLine, and
71         FillReversibleRectangle.
73         * XplatUIX11-new.cs: add DrawReversibleFrame, DrawReversibleLine,
74         and FillReversibleRectangle which call into X11Display's methods.
75         
76 2006-12-07  Chris Toshok  <toshok@ximian.com>
78         * XplatUIX11-new.cs: add the 3 double buffering calls, calling
79         into the X11Display.
81         * Xlib.cs: add XCreatePixmap.
83         * X11Display.cs: implement the double buffering calls the same as
84         XplatUIX11.cs.
86 2006-12-06  Chris Toshok  <toshok@ximian.com>
88         * X11Display.cs: make Control.child_controls private.  switch all
89         uses over to Control.Controls.
91 2006-12-05  Chris Toshok  <toshok@ximian.com>
93         * X11Display.cs: fix some compiler warnings, and also re-include
94         the autorepeat event filtering from XplatUIX11.cs.
96 2006-12-01  Chris Toshok  <toshok@ximian.com>
98         * X11Hwnd.cs: need to mark queue as "new" to quiet mcs.
100 2006-11-29  Chris Toshok  <toshok@ximian.com>
102         * X11Hwnd.cs: implement GetWindowTransparency, and also add
103         caching for WINDOW_TYPE and _NET_WM_WINDOW_OPACITY.  We invalidate
104         the cache when we get a PropertyNotify on that atom.
106         * X11Display.cs: return GetSet from SupportsTransparency if we
107         have a compositor running.  otherwise return None.
109         * XplatUIX11-new.cs: pass SupportsTransparency off onto the
110         X11Display, and pass GetWindowTransparency off onto the X11Hwnd.
112 2006-11-29  Chris Toshok  <toshok@ximian.com>
114         * X11ThreadQueue.cs (EnqueueUnlocked): add the switch motionnotify
115         compression/NeedDispatchIdle assignment found in X11Hwnd here.
116         (RemovePaintUnlocked): nuke
117         (AddPaintUnlocked): nuke
118         (AddConfigureUnlocked): rename to AddConfigure.
120         Add some debug stuff to HwndEventQueue so we can see the stack
121         trace of where the hwnd was added to the queue, in case we somehow
122         try to add it multiple times.
124         * X11Hwnd.cs (AddExpose): there's no need for this to have locks
125         around it - it should only ever be called from operations on the
126         hwnd's thread (from ScrollWindow, from GetMessage, from
127         Invalidate).
128         (AddConfigureNotify): same goes here.
129         (HandleConfigureNotify): remove configure_lock reference.
130         (EnqueueEvent): nuke this.
131         (PaintEventStart): remove locking.
132         (ScrollWindow): remove locking.
133         
134         also, remove all references to
135         AddPaintUnlocked/RemovePaintUnlocked/AddConfigureUnlocked.  since
136         we don't need to lock around them, there's not need.
137         
138         * X11Display.cs (XEventThread) switch from hwnd.EnqueueEvent to
139         hwnd.Queue.Enqueue.
141 2006-11-28  Chris Toshok  <toshok@ximian.com>
143         * X11ThreadQueue.cs: factor out all the commonality from
144         PaintQueue/ConfigureQueue.  Add a comment about XEventQueue.  stop
145         using % from the XEventQueue.  if we're going for performance,
146         it's much quicker to use a multiple of 2 size for the array and
147         use & for wrapping.  Also, fix XEventQueue.Grow().  it was
148         reordering the queue before.
150         * X11Hwnd.cs, XplatUIX11-new.cs: remove spew, and ^M's.
152 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
153         
154         * XplatUIX11-new.cs:
155         * X11Hwnd.cs:
156         - Added RequestAdditionalWM_NCMessages for windows to 
157           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
159 2006-11-28  Chris Toshok  <toshok@ximian.com>
161         * X11Display.cs (XEventThread): move to a polling strategy again,
162         since XNextEvent locks the display - without this, nothing can
163         happen with any toplevel X call until there's an event.  So we
164         poll on the XConnectionNumber, then consume all available events
165         before polling again.
166         (DispatchMessage): move this here.
167         (SetCursor): same.
168         (OverrideCursor): same.
169         (RedirectMsgToEnabledAncestor): make this code work for any XEvent
170         by removing the XEvent from the arg list.
171         (GetMessage): pretty major overhaul.  we now have a 3 loops.  We
172         loop over all the X events in the queue until there aren't any,
173         calling AddExpose and AddConfigureNotify for Expose and Configure
174         events respectively.  Those methods end up queueing up special
175         "events" in the thread queue's Paint and Configure queues.  Once
176         the X event loop is finished, we check to see if there are pending
177         configure/paint events, and handle any that are present.
178         (DoEvents): move here.
180         * X11ThreadQueue.cs: make DequeueUnlocked only dequeue X events.
181         if there are no x events and there *are* paint or configure
182         events, return early.  add a "configure queue" which is almost
183         identical to the "paint queue" except for the events it generates.
184         this needs refactoring so the code can be shared.
186         * XplatUIX11-new.cs: move the DefWndProc to X11Hwnd.  Move
187         SetCursor, OverrideCursor, DispatchMessage and DoEvents to
188         X11Display.
190         * X11Hwnd.cs (Update): do all this under the queue lock..
191         theorize about whether or not the SendMessage (WM_PAINT) should be
192         called from under the lock.
193         (DefWndProc): move this here.
194         (PendingExpose,PendingNCExpose): new properties, which should
195         eventually be pushed into Hwnd (and made abstract?)  Move all the
196         queue manipulation here.
197         (PaintEventStart): restrict the queue lock code a bit more.
198         (PerformNCCalc): remove the optimization - it keeps client windows
199         from resizing along with their parent.
200         (SetPosition): track change Rolf made to XplatUIX11.cs on
201         2006-11-22.
203 2006-11-21  Chris Toshok  <toshok@ximian.com>
205         * X11Hwnd.cs: the IntPtr atom change broke the Array.Sort stuff I
206         was doing.  Just remove it.
208         * XplatUIX11-new.cs: add a message if Xlib.XInitThreads fails.
210         * X11ThreadQueue.cs: another Date.Now -> Date.UtcNow fix.
212         * X11RootHwnd.cs: remove the setting of Display.ActiveWindow from
213         here.  move all the logic into X11Display.SetActiveWindow.
215         * X11Display.cs: move the logic for setting ActiveWindow here, and
216         make ModalWindows private.
217         
218 2006-11-21  Chris Toshok  <toshok@ximian.com>
220         * Xlib.cs: remove the static keyword from the class
222 2006-11-21  Chris Toshok  <toshok@ximian.com>
224         * XplatUIX11-new.cs: implement the Idle event by adding/removing
225         it from the applicable X11ThreadQueue and remove the OnIdle
226         method.  Also, implement the new InvalidateNC method.
228         * X11Display.cs: remove the idle dispatch code, as it can't be
229         generated by the XEventThread.  It has to be generated by the
230         threads running the various message pumps, as it has to be invoked
231         on that same thread.  Factor out the use of Hwnd.EnabledHwnd along
232         with the accompanying call to XTranslateCoordinates to a separate
233         function (RedirectMsgToEnabledAncestor).  Fix some NRE's accessing
234         FocusWindow, since it's not an IntPtr anymore but a X11Hwnd.
236         * X11ThreadQueue.cs: move the Idle dispatch stuff here.  Also,
237         correct the first arg to Idle - it's not the XplatUI, it's the
238         Thread.
240         * X11Hwnd.cs: numerous formatting changes, change the logic of
241         some if statements to make things cleaner.  Factor out the
242         USER_TIME manipulation from a few places. Change all atom
243         manipulation to use IntPtr's instead of int's the way the old
244         XplatUIX11 stuff worked.  This might help fix things for 64-bit
245         platforms..  more work needed there.  Also, add the new
246         InvalidateNC support (basically the same as the old
247         InvalidateWholeWindow), and remove the InvalidateWholeWindow
248         calls.
250 2006-11-17  Chris Toshok  <toshok@ximian.com>
252         * X11Hwnd.cs: port the XplatUIX11.ScrollWindow fix from 68061.
254 2006-11-14  Chris Toshok  <toshok@ximian.com>
256         * X11Hwnd.cs, X11RootHwnd.cs, X11Atoms.cs, X11Display.cs,
257         X11Exception.cs, Xlib.cs: Initial pass at refactoring the X11
258         backend.