#define SPI_DEVICE_EVENT_CONTROLLER_H_
#include <X11/Xlib.h>
-#include <gdk/gdk.h>
+#include <dbus/dbus.h>
typedef struct _SpiDEController SpiDEController;
struct _SpiDEController {
GObject parent;
-
- SpiRegistry *registry;
- GList *key_listeners;
- GList *mouse_listeners;
- GList *keygrabs_list;
- Display *xevie_display;
+ DBusConnection *bus;
+ SpiRegistry *registry;
+ GList *key_listeners;
+ GList *mouse_listeners;
+ GList *keygrabs_list;
+ Display *xevie_display;
+ GQueue *message_queue;
+ guint message_queue_idle;
};
typedef struct {
} SpiDEControllerClass;
GType spi_device_event_controller_get_type (void);
-SpiDEController *spi_device_event_controller_new (SpiRegistry *registry);
+SpiDEController *spi_device_event_controller_new (SpiRegistry *registry,
+ DBusConnection *bus);
+
+void spi_device_event_controller_start_poll_mouse (SpiRegistry *registry);
+void spi_device_event_controller_stop_poll_mouse (void);
void spi_remove_device_listeners (SpiDEController *controller, const char *bus_name);
+SpiDEController *spi_registry_dec_new (SpiRegistry *reg, DBusConnection *bus);
G_END_DECLS
#endif /* DEVICEEVENTCONTROLLER_H_ */