Systray icon improvements
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 27 Apr 2009 18:38:19 +0000 (20:38 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 27 Apr 2009 19:36:38 +0000 (21:36 +0200)
commit6f442c275cc5a2d5f1084ac2ceca5f1ffce1d024
tree8df2c437cd1ebc67197598fdd54c479590f7d8e0
parent308e090392713b0fa2e402156fbae2fa74cab96a
Systray icon improvements

* Hide rather than minimize the MainWin on click (this is standard behavior)
* Bring window to front if it's obscured by other windows, rather than minimize it
  This works with KDE integration and on Windows only. Sorry pure Qt users, but I don't
  feel like reimplementing the X11 voodoo required for finding out our state :/
* Properly restore the old position after unhiding the window
* Select highlighted buffer if a highlight is pending
* Fix some corner cases where minimize/restore failed before

Kudos to the KSystemTrayIcon developers for showing me how to stab some manners into window managers :)
src/qtui/knotificationbackend.cpp
src/qtui/knotificationbackend.h
src/qtui/mainwin.cpp
src/qtui/mainwin.h
src/qtui/qtui.cpp
src/qtui/systemtray.cpp
src/qtui/systemtray.h
src/qtui/systraynotificationbackend.cpp
src/qtui/systraynotificationbackend.h