summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2010-12-21 18:11:14 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2010-12-21 18:11:14 +0100
commit47737dfabd3f2ba1929d3b5ba28885fd2324d907 (patch)
treeee5716fcdc2402ab070feaf40d0f267318e7399f
parent3edcd6393fc01c3b0826a8dc935a810c91b92ce3 (diff)
gtk: spicy use shift+f12 for grab sequencev0.3
-rw-r--r--gtk/spicy.c4
1 files changed, 4 insertions, 0 deletions
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);