summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2020-12-02 16:35:26 +0100
committerChristian Persch <chpe@src.gnome.org>2020-12-02 16:35:26 +0100
commite70b33b0974156dbf0c000910000daecf04fd86d (patch)
tree09d53e45f8fad753dcafeaecedddd8b5105033a8
parent5dd5823224558ffeb202c7969e03d5766fe3894e (diff)
downloadvte-e70b33b0974156dbf0c000910000daecf04fd86d.tar.gz
widget: Fix clipboard types
https://gitlab.gnome.org/GNOME/vte/-/issues/316
-rw-r--r--src/widget.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget.cc b/src/widget.cc
index f55abee0..959839d0 100644
--- a/src/widget.cc
+++ b/src/widget.cc
@@ -225,8 +225,8 @@ Clipboard&
Widget::clipboard_get(ClipboardType type) const
{
switch (type) {
- case ClipboardType::PRIMARY: return *m_clipboard;
- case ClipboardType::CLIPBOARD: return *m_primary_clipboard;
+ case ClipboardType::CLIPBOARD: return *m_clipboard;
+ case ClipboardType::PRIMARY: return *m_primary_clipboard;
default: g_assert_not_reached(); throw std::runtime_error{""}; break;
}
}