Displaying 2 results from an estimated 2 matches for "xgrabserver".
Did you mean:
grabserver
2000 May 31
0
gnome-ssh-askpass patch
...1E2D FF0A A08B B913 0CA7 EAA1 7ECE CEDB
http://www.kondara.org/
-------------- next part --------------
--- contrib/gnome-ssh-askpass.c.original Wed Mar 15 10:13:03 2000
+++ contrib/gnome-ssh-askpass.c Mon May 29 00:46:59 2000
@@ -79,7 +79,7 @@
gtk_widget_show_all(dialog);
/* Grab focus */
- XGrabServer(GDK_DISPLAY());
+ /* XGrabServer(GDK_DISPLAY()); */
gdk_pointer_grab(dialog->window, TRUE, 0, NULL, NULL, GDK_CURRENT_TIME);
gdk_keyboard_grab(dialog->window, FALSE, GDK_CURRENT_TIME);
@@ -90,7 +90,7 @@
result = gnome_dialog_run(GNOME_DIALOG(dialog));
/* Ungrab */
- XUngrabServe...
2012 Jan 13
0
[PATCH 1/1] Ported gnome-ssh-askpass2 to gtk3.
...text(GTK_ENTRY(entry), passphrase);
+ memset(passphrase, '\0', strlen(passphrase));
+ g_free(passphrase);
+
+ gtk_widget_destroy(dialog);
+ return (result == GTK_RESPONSE_OK ? 0 : -1);
+
+ /* At least one grab failed - ungrab what we got, and report
+ the failure to the user. Note that XGrabServer() cannot
+ fail. */
+ nograbkb:
+ gdk_pointer_ungrab(GDK_CURRENT_TIME);
+ nograb:
+ if (grab_server)
+ XUngrabServer(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()));
+ gtk_widget_destroy(dialog);
+
+ report_failed_grab(failed);
+
+ return (-1);
+}
+
+int
+main(int argc, char **argv)
+{
+ cha...