Disable special logic for pasting on Wayland

This commit is contained in:
Ryan Fonnesbeck 2020-05-01 17:05:40 +02:00 committed by Markus Frosch
parent a87cc8a0e6
commit fb6b940f48

View File

@ -927,12 +927,11 @@ class Terminal(Gtk.VBox):
# Suppress double-click behavior
return True
use_primary = (display_manager() != 'WAYLAND')
if self.config['putty_paste_style']:
middle_click = [self.popup_menu, (widget, event)]
right_click = [self.paste_clipboard, (use_primary, )]
right_click = [self.paste_clipboard, (True, )]
else:
middle_click = [self.paste_clipboard, (use_primary, )]
middle_click = [self.paste_clipboard, (True, )]
right_click = [self.popup_menu, (widget, event)]
if event.button == self.MOUSEBUTTON_LEFT: