nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Re: nxkbd & nanowm: Don't move
From: Stefan Butlin
Date: Mon, 9 Oct 2000 11:00:37 +0100 (BST)



Nils Faerber wrote:
> Is it possible to tell nanowm in any way that windows shall not be moved when
> the pointer is clicked and dragged in them?


I also found this a problem with nxkbd.  My fix (until Greg provides the
proper way to do it with window properties) was to add
GR_EVENT_MASK_BUTTON_UP to the GrSelectEvents() call in
demos/nxkbd/nxkbd.c.

See the code comments for the GsDeliverButtonEvent() function in
nanox/srvevent.c for why this provides a workaround to the problem.


Cheers
Stef




nanogui@linuxhacker.org