Disable special logic for pasting on Wayland
This commit is contained in:
parent
a87cc8a0e6
commit
fb6b940f48
|
@ -927,12 +927,11 @@ class Terminal(Gtk.VBox):
|
||||||
# Suppress double-click behavior
|
# Suppress double-click behavior
|
||||||
return True
|
return True
|
||||||
|
|
||||||
use_primary = (display_manager() != 'WAYLAND')
|
|
||||||
if self.config['putty_paste_style']:
|
if self.config['putty_paste_style']:
|
||||||
middle_click = [self.popup_menu, (widget, event)]
|
middle_click = [self.popup_menu, (widget, event)]
|
||||||
right_click = [self.paste_clipboard, (use_primary, )]
|
right_click = [self.paste_clipboard, (True, )]
|
||||||
else:
|
else:
|
||||||
middle_click = [self.paste_clipboard, (use_primary, )]
|
middle_click = [self.paste_clipboard, (True, )]
|
||||||
right_click = [self.popup_menu, (widget, event)]
|
right_click = [self.popup_menu, (widget, event)]
|
||||||
|
|
||||||
if event.button == self.MOUSEBUTTON_LEFT:
|
if event.button == self.MOUSEBUTTON_LEFT:
|
||||||
|
|
Loading…
Reference in New Issue