Browse Source

gsudo: cancel on close/session end messages

K. Lange 2 years ago
parent
commit
366756c99c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      apps/gsudo.c

+ 3 - 0
apps/gsudo.c

@@ -89,6 +89,9 @@ static int graphical_callback(char * username, char * password, int fails, char
 					}
 				}
 				break;
+			case YUTANI_MSG_WINDOW_CLOSE:
+			case YUTANI_MSG_SESSION_END:
+				return 1;
 		}
 	}
 }