summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-04-12 01:48:24 +0200
committermonsta <[email protected]>2017-04-13 11:35:22 +0300
commitbe0cae7c070b5a94fb685a8c47a6dfa495daaf76 (patch)
treebca7250157ac828381c88a7c8a1aa6ea5478b50f
parent00f5b62c5f08f3321f4fb2251be044c4027f8650 (diff)
downloadmate-terminal-be0cae7c070b5a94fb685a8c47a6dfa495daaf76.tar.bz2
mate-terminal-be0cae7c070b5a94fb685a8c47a6dfa495daaf76.tar.xz
Fix: Double click with right button causes Xorg to crash
Fixes #171
-rw-r--r--src/terminal-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 1a01dda..464820f 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1535,9 +1535,9 @@ popup_clipboard_targets_received_cb (GtkClipboard *clipboard,
if (info->button == 0)
gtk_menu_shell_select_first (GTK_MENU_SHELL (popup_menu), FALSE);
- if (gtk_menu_get_attach_widget (GTK_MENU (popup_menu)))
- gtk_menu_detach (GTK_MENU (popup_menu));
- gtk_menu_attach_to_widget (GTK_MENU (popup_menu), GTK_WIDGET (screen), NULL);
+ if (!gtk_menu_get_attach_widget (GTK_MENU (popup_menu)))
+ gtk_menu_attach_to_widget (GTK_MENU (popup_menu),GTK_WIDGET (screen),NULL);
+
gtk_menu_popup (GTK_MENU (popup_menu),
NULL, NULL,
NULL, NULL,