nanogui: Mouse events


Previous by date: 18 Oct 2005 19:12:36 +0100 Re: need help on subdriver operation, Greg Haerr
Next by date: 18 Oct 2005 19:12:36 +0100 Re: [mail] Re: [nanogui] Changing Data, Dave Stuart
Previous in thread: 18 Oct 2005 19:12:36 +0100 Re: Mouse events, Greg Haerr
Next in thread: 18 Oct 2005 19:12:36 +0100 Re: Mouse events, Greg Haerr

Subject: Re: [nanogui] Mouse events
From: "Dave Stuart" ####@####.####
Date: 18 Oct 2005 19:12:36 +0100
Message-Id: <000201c5d40f$72d6b9c0$2003a8c0@house>

I'm sorry to be such a pest but I can't find the code in nanowm that does
this.  Is there any documentation on how to use nanowm from another program
or is it used as a base to build your own programs on?

thanks

dave

----- Original Message ----- 
From: "Greg Haerr" ####@####.####
To: "Dave Stuart" ####@####.#### ####@####.####
Sent: Sunday, October 16, 2005 5:16 PM
Subject: [mail] Re: [nanogui] Mouse events


> > I am trying to write code to drag windows around the screen.  I have
> tried using MOUSE_POSITION and MOUSE_MOTION but they don't seem to do
> what I need.  If you drag the windows slowly it works fine but if you
> move the mouse too fast the screen goes wonky.
>
> Wonky?  What exactly is that?
>
>             GrMoveWindow (event.mouse.subwid,
> devices[mouse_down_window].horizontal_location,
> devices[mouse_down_window].vertical_location);
>
> The above code is handled specially by the server since you don't
> programmatically unmap the window, and move it, then map it again.
> This is the source of a race condition between the server moving the
> window, and you're pumping more move commands down the
> pipe, based on where your mouse is.
>
> You might try manually unmap/mapping the window, or take a look
> at how nanowm does this, since it already has this code working.
>
> Regards,
>
> Greg
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>


Previous by date: 18 Oct 2005 19:12:36 +0100 Re: need help on subdriver operation, Greg Haerr
Next by date: 18 Oct 2005 19:12:36 +0100 Re: [mail] Re: [nanogui] Changing Data, Dave Stuart
Previous in thread: 18 Oct 2005 19:12:36 +0100 Re: Mouse events, Greg Haerr
Next in thread: 18 Oct 2005 19:12:36 +0100 Re: Mouse events, Greg Haerr


Powered by ezmlm-browse 0.20.