[Mono-list] Interception X11 events
toshok at ximian.com
Wed Aug 16 10:41:36 EDT 2006
You're probably better off writing your own event handling/translating
for a window manager. The purpose of XplatUIX11.cs is to provide the
win32 semantics MWF needs (and only what it needs) in an X11 world. The
additional events (all the *Request events) have no mapping in the win32
world, and you'll end up having to set the RedirectRequest flags on
native X windows anyway. Also, there's no way in SWF to read X window
If you're looking to draw on window frames using S.D, you can do that
without pulling in SWF. Check out gtk-sharp/gtkdotnet/Graphics.cs for
an example of how to do it with a Gdk.Window.
On Wed, 2006-08-16 at 11:17 -0300, Diego Nunes wrote:
> A windows manager "knows" when a new window application rises by
> receiving a Maprequest event.
> This event informs about handle, location and dimension of new window,
> so the WindowManager can Paint the Title Bar, borders and Minimize,
> maximize and close buttons.
> Looking at the source of XplatUI, this event is ignored.
> I'm thinking in 2 solutons:
> a) Mono changes the source and translate Maprequest to WM_USER with
> additional info.
> b) Rewrite (derivating) Application (Run method), XplatUI and
> XplatUIX11 classes for this job.
> On 8/16/06, Peter Dennis Bartok <Peter at novonyx.com> wrote:
> > Uhm, I'm not sure what you're asking. You want us to do exactly what? Show
> > you how to decode the maprequest, or translate the maprequest into some
> > win32 message (not sure which one that would be). The XplatUI class is
> > internal anyways, unless you're using reflection you won't get that anything
> > in there.
> > Peter
> > -----Original Message-----
> > From: "Diego Nunes" <diego.nunes.br at gmail.com>
> > To: <mono-list at lists.ximian.com>
> > Date: Tuesday, August 15, 2006 20:03
> > Subject: [Mono-list] Interception X11 events
> > >I need get X11 event MapRequest, that isn't translated for w32 event.
> > >In the file XplatUIX11.cs there isn't any handler for this message (in
> > >GetMessage method)
> > >
> > >I need this cos I'm coding a Window Manager (or Desktop Manager) for X11.
> > >
> > >Some can help me?
> > >
> > >Thanks,
> > >Diego.
> > >_______________________________________________
> > >Mono-list maillist - Mono-list at lists.ximian.com
> > >http://lists.ximian.com/mailman/listinfo/mono-list
> > >
> > >
> Mono-list maillist - Mono-list at lists.ximian.com
More information about the Mono-list