apply SkipTaskbar on ExposeEvent

applying the flag on exposeEvent correctly hides the dialog
from the taskbar, while is still present if only applied
in ShowEvent

Change-Id: I289c36aff251e5cc6e41a493cbc0b2b5b1432a8d
This commit is contained in:
Marco Martin 2015-10-08 20:13:05 +02:00
parent 64fdce2086
commit 829c8479ec

View File

@ -1065,8 +1065,9 @@ void Dialog::showEvent(QShowEvent *event)
bool Dialog::event(QEvent *event)
{
if (event->type() == QEvent::Show) {
if (event->type() == QEvent::Expose) {
KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager);
} else if (event->type() == QEvent::Show) {
d->updateVisibility(true);
} else if (event->type() == QEvent::Hide) {
d->updateVisibility(false);