Re: How can I hook into any X input events sent to my app?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lately I have noticed that gdk_window_add_filter() no longer seems to be passing keypress / release events (event->type=2,3) to the filter function. Has anybody else observed this behaviour ? Is there a solution for this ?

Salsaman.
 


http://lives.sourceforge.net
https://www.ohloh.net/accounts/salsaman


On Sun, Sep 22, 2013 at 2:07 PM, Jasper St. Pierre <jstpierre@xxxxxxxxxxx> wrote:
You can do the unintuitive thing of passing NULL as the first argument to gdk_window_add_filter to get all events delivered to your app.


On Sun, Sep 22, 2013 at 10:46 AM, Woody Wu <narkewoody@xxxxxxxxx> wrote:
On Sat, Sep 21, 2013 at 11:47:16AM -0400, Jasper St. Pierre wrote:
> You can use an event filter; see gdk_window_add_filter.

Thanks.  Can a filter registered to a window see all the events
dispatching to its children windows? Otherwise, I have to register the
filter for every window ever opened in my app.


>
>
> On Sat, Sep 21, 2013 at 5:32 AM, Woody Wu <narkewoody@xxxxxxxxx> wrote:
>
> > Hi,
> >
> > In my application, I want to record how much longer user has not did
> > anything, including key pressing and mouse pressing in any area of any
> > of my windows.
> >
> > If I can hook into the very core the event dispatching, then I can
> > recored a timestamp. In other place of my application, I can check this
> > timestamp and decide if I should do something.
> >
> > How can I accomplish this with GTK+?
> >
> > Thanks in advance.
> >
> > --
> > I can't go back to yesterday - because I was a different person then
> > _______________________________________________
> > gtk-list mailing list
> > gtk-list@xxxxxxxxx
> > https://mail.gnome.org/mailman/listinfo/gtk-list
> >
>
>
>
> --
>   Jasper

--
I can't go back to yesterday - because I was a different person then



--
  Jasper

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list


_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux