Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.494 kB
/* Copyright (c) 2005 Novell, Inc. */
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
gboolean stetic_keycode_is_modifier (guint keycode);
gboolean
stetic_keycode_is_modifier (guint keycode)
{
static XModifierKeymap *mod_keymap;
static int map_size;
int i;
if (!mod_keymap) {
mod_keymap = XGetModifierMapping (gdk_display);
map_size = 8 * mod_keymap->max_keypermod;
}
for (i = 0; i < map_size; i++) {
if (keycode == mod_keymap->modifiermap[i])
return TRUE;
}
return FALSE;
}
Jump to Line
Something went wrong with that request. Please try again.