Toasts: Don't raise a whole bunch, just window hint to always be on top
This commit is contained in:
parent
a3d15b5eaa
commit
6267fc071c
2 changed files with 2 additions and 3 deletions
|
@ -15,7 +15,6 @@ Features
|
|||
* Whowas for last seen online?
|
||||
* Tab completion of two letter names
|
||||
* When 'banned' make impossible to connect using timestamp banned under
|
||||
* Fully working Toasts
|
||||
* Auto download/install updates via Windows installer
|
||||
* Turn memo notifications on/off from right-click menu on memos (Idea: lostGash)
|
||||
* Gray out random encounter option when RE is offline
|
||||
|
@ -36,6 +35,7 @@ Windows Bugs
|
|||
* XP SP2: sometimes mouse clicks dont register? must be some kinda crash
|
||||
* On reconnect and nick change, momentary theme change causes menu items to stop working
|
||||
* Random chums won't show up on chumroll
|
||||
* Popup toast notifications cause main window to raise
|
||||
|
||||
Mac Bugs
|
||||
--------
|
||||
|
|
3
toast.py
3
toast.py
|
@ -173,7 +173,7 @@ class ToastMachine(object):
|
|||
|
||||
class PesterToast(QtGui.QWidget, DefaultToast):
|
||||
def __init__(self, machine, title, msg, icon, time=3000, parent=None):
|
||||
QtGui.QWidget.__init__(self, parent)
|
||||
QtGui.QWidget.__init__(self, parent, (QtCore.Qt.WindowStaysOnTopHint | QtCore.Qt.X11BypassWindowManagerHint))
|
||||
|
||||
self.machine = machine
|
||||
self.time = time
|
||||
|
@ -281,7 +281,6 @@ class PesterToast(QtGui.QWidget, DefaultToast):
|
|||
val = float(self.height())/100
|
||||
self.move(p.x()-self.width(), p.y() - (value.toInt()[0] * val) +1)
|
||||
self.layout().setSpacing(0)
|
||||
self.raise_()
|
||||
QtGui.QWidget.show(self)
|
||||
|
||||
def mousePressEvent(self, event):
|
||||
|
|
Loading…
Reference in a new issue