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