Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rcw.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rcw.c b/src/rcw.c
index cd1c51b20..7b95cadee 100644
--- a/src/rcw.c
+++ b/src/rcw.c
@@ -2305,8 +2305,13 @@ static void rcw_toolbar_grab(GtkToolItem *toggle, RemminaConnectionWindow *cnnwi
if (!(cnnobj = rcw_get_visible_cnnobj(cnnwin))) return;
capture = gtk_toggle_tool_button_get_active(GTK_TOGGLE_TOOL_BUTTON(toggle));
- remmina_file_set_int(cnnobj->remmina_file, "keyboard_grab", capture);
+
+ if (cnnobj->connected){
+ remmina_file_set_int(cnnobj->remmina_file, "keyboard_grab", capture);
+ }
+
if (capture && cnnobj->connected) {
+
#if DEBUG_KB_GRABBING
printf("DEBUG_KB_GRABBING: Grabbing for button\n");
#endif