From 47737dfabd3f2ba1929d3b5ba28885fd2324d907 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Tue, 21 Dec 2010 18:11:14 +0100 Subject: gtk: spicy use shift+f12 for grab sequence --- gtk/spicy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/spicy.c b/gtk/spicy.c index 10ad3df..5175269 100644 --- a/gtk/spicy.c +++ b/gtk/spicy.c @@ -567,6 +567,7 @@ static spice_window *create_spice_window(spice_connection *conn, int id) GtkWidget *vbox, *frame; GError *err = NULL; int i; + SpiceGrabSequence *seq; win = malloc(sizeof(*win)); if (NULL == win) @@ -619,6 +620,9 @@ static spice_window *create_spice_window(spice_connection *conn, int id) /* spice display */ win->spice = GTK_WIDGET(spice_display_new(conn->session, id)); + seq = spice_grab_sequence_new_from_string("Shift+F12"); + spice_display_set_grab_keys(SPICE_DISPLAY(win->spice), seq); + spice_grab_sequence_free(seq); g_signal_connect(G_OBJECT(win->spice), "mouse-grab", G_CALLBACK(mouse_grab_cb), win); -- cgit v1.2.3