--- gnome-disk-utility-2.32.0/src/gdu-gtk/gdu-volume-grid.c 2010-09-15 10:12:21.000000000 -0400 +++ gnome-disk-utility-2.32.0.no-xkb/src/gdu-gtk/gdu-volume-grid.c 2010-11-03 16:40:37.544241996 -0400 @@ -25,7 +25,6 @@ #include #include #include -#include #include @@ -259,26 +258,6 @@ } static gboolean -is_ctrl_pressed (void) -{ - gboolean ret; - XkbStateRec state; - Bool status; - - ret = FALSE; - - gdk_error_trap_push (); - status = XkbGetState (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), XkbUseCoreKbd, &state); - gdk_error_trap_pop (); - - if (status == Success) { - ret = ((state.mods & ControlMask) != 0); - } - - return ret; -} - -static gboolean gdu_volume_grid_key_press_event (GtkWidget *widget, GdkEventKey *event) { @@ -332,7 +311,7 @@ } if (target != NULL) { - if (is_ctrl_pressed ()) { + if ((event->state & GDK_CONTROL_MASK) != 0) { grid->priv->focused = target; } else { grid->priv->selected = target;