[gtkmm] Handle X (root window) events in gtkmm?

Is there a simple way to catch low-level X events in a gtk-- (1.2) application? I'm primarily interested in events on the root window; I'm not sure if that complicates matters.

I have actually tried to solve the problem by calling XSelectInput(), at startup, then polling events via the idle signal. This nearly works:

  1. It may easily lead to unnecessary load on the system.
  2. It looks like some of the events are lost.

- Toralf

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