Try to get the password window to the top of the z-order.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 10 Feb 2014 20:12:19 -0500
changeset 26 52d346bbaa51
parent 25 44b6b8b34eb8
child 27 d4d54dc1ee5f
Try to get the password window to the top of the z-order.
1pass.c
--- a/1pass.c	Mon Feb 10 20:11:43 2014 -0500
+++ b/1pass.c	Mon Feb 10 20:12:19 2014 -0500
@@ -210,6 +210,7 @@
 
     gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
     gtk_widget_show_all(dialog);
+    gtk_window_set_keep_above(GTK_WINDOW(dialog), TRUE);
     const int ok = (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT);
     retvalString(L, ok ? (const char *) gtk_entry_get_text(GTK_ENTRY(entry)) : NULL);
     gtk_widget_destroy(dialog);