summaryrefslogtreecommitdiffstats
path: root/deluge/ui/gtk3/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'deluge/ui/gtk3/common.py')
-rw-r--r--deluge/ui/gtk3/common.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/deluge/ui/gtk3/common.py b/deluge/ui/gtk3/common.py
index 757c3de27..8359327d0 100644
--- a/deluge/ui/gtk3/common.py
+++ b/deluge/ui/gtk3/common.py
@@ -16,7 +16,7 @@ import shutil
import sys
import six.moves.cPickle as pickle # noqa: N813
-from gi.repository.Gdk import SELECTION_CLIPBOARD
+from gi.repository.Gdk import SELECTION_CLIPBOARD, Display
from gi.repository.GdkPixbuf import Colorspace, Pixbuf
from gi.repository.GLib import GError
from gi.repository.Gtk import (
@@ -389,3 +389,7 @@ def get_clipboard_text():
)
if text:
return text.strip()
+
+
+def windowing(like):
+ return like.lower() in str(type(Display.get_default())).lower()