1 2006-11-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
5 - Added RequestAdditionalWM_NCMessages for windows to
6 opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
8 2006-11-28 Chris Toshok <toshok@ximian.com>
10 * X11Display.cs (XEventThread): move to a polling strategy again,
11 since XNextEvent locks the display - without this, nothing can
12 happen with any toplevel X call until there's an event. So we
13 poll on the XConnectionNumber, then consume all available events
15 (DispatchMessage): move this here.
17 (OverrideCursor): same.
18 (RedirectMsgToEnabledAncestor): make this code work for any XEvent
19 by removing the XEvent from the arg list.
20 (GetMessage): pretty major overhaul. we now have a 3 loops. We
21 loop over all the X events in the queue until there aren't any,
22 calling AddExpose and AddConfigureNotify for Expose and Configure
23 events respectively. Those methods end up queueing up special
24 "events" in the thread queue's Paint and Configure queues. Once
25 the X event loop is finished, we check to see if there are pending
26 configure/paint events, and handle any that are present.
27 (DoEvents): move here.
29 * X11ThreadQueue.cs: make DequeueUnlocked only dequeue X events.
30 if there are no x events and there *are* paint or configure
31 events, return early. add a "configure queue" which is almost
32 identical to the "paint queue" except for the events it generates.
33 this needs refactoring so the code can be shared.
35 * XplatUIX11-new.cs: move the DefWndProc to X11Hwnd. Move
36 SetCursor, OverrideCursor, DispatchMessage and DoEvents to
39 * X11Hwnd.cs (Update): do all this under the queue lock..
40 theorize about whether or not the SendMessage (WM_PAINT) should be
41 called from under the lock.
42 (DefWndProc): move this here.
43 (PendingExpose,PendingNCExpose): new properties, which should
44 eventually be pushed into Hwnd (and made abstract?) Move all the
45 queue manipulation here.
46 (PaintEventStart): restrict the queue lock code a bit more.
47 (PerformNCCalc): remove the optimization - it keeps client windows
48 from resizing along with their parent.
49 (SetPosition): track change Rolf made to XplatUIX11.cs on
52 2006-11-21 Chris Toshok <toshok@ximian.com>
54 * X11Hwnd.cs: the IntPtr atom change broke the Array.Sort stuff I
55 was doing. Just remove it.
57 * XplatUIX11-new.cs: add a message if Xlib.XInitThreads fails.
59 * X11ThreadQueue.cs: another Date.Now -> Date.UtcNow fix.
61 * X11RootHwnd.cs: remove the setting of Display.ActiveWindow from
62 here. move all the logic into X11Display.SetActiveWindow.
64 * X11Display.cs: move the logic for setting ActiveWindow here, and
65 make ModalWindows private.
67 2006-11-21 Chris Toshok <toshok@ximian.com>
69 * Xlib.cs: remove the static keyword from the class
71 2006-11-21 Chris Toshok <toshok@ximian.com>
73 * XplatUIX11-new.cs: implement the Idle event by adding/removing
74 it from the applicable X11ThreadQueue and remove the OnIdle
75 method. Also, implement the new InvalidateNC method.
77 * X11Display.cs: remove the idle dispatch code, as it can't be
78 generated by the XEventThread. It has to be generated by the
79 threads running the various message pumps, as it has to be invoked
80 on that same thread. Factor out the use of Hwnd.EnabledHwnd along
81 with the accompanying call to XTranslateCoordinates to a separate
82 function (RedirectMsgToEnabledAncestor). Fix some NRE's accessing
83 FocusWindow, since it's not an IntPtr anymore but a X11Hwnd.
85 * X11ThreadQueue.cs: move the Idle dispatch stuff here. Also,
86 correct the first arg to Idle - it's not the XplatUI, it's the
89 * X11Hwnd.cs: numerous formatting changes, change the logic of
90 some if statements to make things cleaner. Factor out the
91 USER_TIME manipulation from a few places. Change all atom
92 manipulation to use IntPtr's instead of int's the way the old
93 XplatUIX11 stuff worked. This might help fix things for 64-bit
94 platforms.. more work needed there. Also, add the new
95 InvalidateNC support (basically the same as the old
96 InvalidateWholeWindow), and remove the InvalidateWholeWindow
99 2006-11-17 Chris Toshok <toshok@ximian.com>
101 * X11Hwnd.cs: port the XplatUIX11.ScrollWindow fix from 68061.
103 2006-11-14 Chris Toshok <toshok@ximian.com>
105 * X11Hwnd.cs, X11RootHwnd.cs, X11Atoms.cs, X11Display.cs,
106 X11Exception.cs, Xlib.cs: Initial pass at refactoring the X11