nanogui: Mouse events
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: ####@####.####
>