Skip to content

Commit

Permalink
Merge pull request #51 from gnome-terminator/fix/paste-wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyfrosch committed May 1, 2020
2 parents a87cc8a + fb6b940 commit fe9e041
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions terminatorlib/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,12 +927,11 @@ def on_buttonpress(self, widget, event):
# 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:
Expand Down

0 comments on commit fe9e041

Please sign in to comment.