Rework tray icon activation behavior yet again
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 16 Feb 2010 01:12:51 +0000 (02:12 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 16 Feb 2010 01:12:51 +0000 (02:12 +0100)
commit138bb708911ef06fa37859fa51bca5f47125ccdd
treec01adc957a06ead76d7688fc48d6e58ff41ab903
parent2e9492d9ef198bde37da1f858602ab9624c0a12a
Rework tray icon activation behavior yet again

Finally figured out how to filter out double activation signals from QSystemTrayIcon.
Additionally, main window toggling is now controlled by the systray notification backends
rather than the tray itself. This ensures that we don't get a race condition where the
notification wants to activate the window, and the tray wants to hide it.

Consequently removing the crude inhibitActivation hack.
src/qtui/knotificationbackend.cpp
src/qtui/systemtray.cpp
src/qtui/systemtray.h
src/qtui/systraynotificationbackend.cpp
src/qtui/systraynotificationbackend.h