#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/un.h>
-#include <spi.h>
+#include <cspi/spi.h>
static SPIBoolean report_command_key_event (const AccessibleKeystroke *stroke, void *user_data);
static SPIBoolean report_ordinary_key_event (const AccessibleKeystroke *stroke, void *user_data);
retval = SPI_registerAccessibleKeystrokeListener(all_key_listener,
SPI_KEYSET_ALL_KEYS,
- SPI_KEYMASK_CONTROL,
+ SPI_KEYMASK_CONTROL | SPI_KEYMASK_SHIFT,
(unsigned long) ( SPI_KEY_PRESSED | SPI_KEY_RELEASED ),
SPI_KEYLISTENER_ALL_WINDOWS);
}
static void
-simple_at_exit ()
+simple_at_exit (void)
{
SPI_deregisterAccessibleKeystrokeListener (command_key_listener, SPI_KEYMASK_ALT | SPI_KEYMASK_CONTROL);
AccessibleKeystrokeListener_unref (command_key_listener);
static SPIBoolean
report_all_key_event (const AccessibleKeystroke *key, void *user_data)
{
- g_print("(%d)", key->keyID);
+ fprintf(stderr, "(%ld)", key->keyID);
return FALSE;
}