From 5e80c42a330d6a5f129a9e044b03edef036b4b76 Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Mon, 29 Aug 2011 02:13:49 -0700 Subject: [PATCH] Temporary Bug fix: If on Windows, don't force always on top --- toast.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/toast.py b/toast.py index 17d4b6a..cff408d 100644 --- a/toast.py +++ b/toast.py @@ -1,6 +1,7 @@ import inspect import threading import time, os +import ostools from PyQt4 import QtGui, QtCore try: @@ -173,7 +174,10 @@ class ToastMachine(object): class PesterToast(QtGui.QWidget, DefaultToast): def __init__(self, machine, title, msg, icon, time=3000, parent=None): - QtGui.QWidget.__init__(self, parent, (QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.X11BypassWindowManagerHint)) + if ostools.isWin32(): + QtGui.QWidget.__init__(self, parent) + else: + QtGui.QWidget.__init__(self, parent, (QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.X11BypassWindowManagerHint)) self.machine = machine self.time = time