summaryrefslogtreecommitdiff
path: root/src/terminal-window.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-04-12 01:48:24 +0200
committerZenWalker <[email protected]>2017-04-12 01:49:37 +0200
commit0b2619b0a8bae49b252f7f9382a6d630efd48f49 (patch)
tree01465cd84c710747b84705a8a7e2d05d9bf5b871 /src/terminal-window.c
parent4c5e6250de20d99bb6d84236df3fa7c6d0f51c3b (diff)
downloadmate-terminal-0b2619b0a8bae49b252f7f9382a6d630efd48f49.tar.bz2
mate-terminal-0b2619b0a8bae49b252f7f9382a6d630efd48f49.tar.xz
Fix: Double click with right button causes Xorg to crash
Fixes #171
Diffstat (limited to 'src/terminal-window.c')
-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 7253eb1..fb4dfc0 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,