Skip to content

Commit

Permalink
Try to get the password window to the top of the z-order.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 11, 2014
1 parent 95690b9 commit 57ba8e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 1pass.c
Expand Up @@ -210,6 +210,7 @@ static int runGuiPasswordPrompt(lua_State *L)

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);
Expand Down

0 comments on commit 57ba8e6

Please sign in to comment.