From 7b224a2d4646e6520dac698c4a187715d05e563c Mon Sep 17 00:00:00 2001 From: popkirby Date: Wed, 14 Mar 2018 03:16:30 +0900 Subject: [PATCH] Add Qt.NoDropShadowWindowHint flag to avoid weird shadow --- journal/unix/journal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/journal/unix/journal.py b/journal/unix/journal.py index da194a0..cf11b7f 100644 --- a/journal/unix/journal.py +++ b/journal/unix/journal.py @@ -64,7 +64,7 @@ class Journal(QWidget): self.close_label.setPixmap(QPixmap(os.path.join(base_path, 'images', 'close.png'))) if "linux" in sys.platform: self.setWindowFlags(Qt.FramelessWindowHint) - else: self.setWindowFlags(self.WindowFlags() | Qt.FramelessWindowHint) + else: self.setWindowFlags(self.windowFlags() | Qt.FramelessWindowHint | Qt.NoDropShadowWindowHint) self.setAttribute(Qt.WA_TranslucentBackground) self.setMouseTracking(True) self.setWindowTitle(' ')