Changeset View
Changeset View
Standalone View
Standalone View
src/platformtheme/kwaylandintegration.cpp
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | 71 | { | |||
---|---|---|---|---|---|
72 | if (!m_decoration) { | 72 | if (!m_decoration) { | ||
73 | return false; | 73 | return false; | ||
74 | } else if (event->type() == QEvent::Expose) { | 74 | } else if (event->type() == QEvent::Expose) { | ||
75 | auto ee = static_cast<QExposeEvent*>(event); | 75 | auto ee = static_cast<QExposeEvent*>(event); | ||
76 | if (ee->region().isNull()) { | 76 | if (ee->region().isNull()) { | ||
77 | return false; | 77 | return false; | ||
78 | } | 78 | } | ||
79 | QWindow *w = qobject_cast<QWindow*>(watched); | 79 | QWindow *w = qobject_cast<QWindow*>(watched); | ||
80 | if (!w || w->parent()) { | 80 | if (!w || w->parent() || !w->isVisible()) { | ||
81 | return false; | 81 | return false; | ||
82 | } | 82 | } | ||
83 | if(w->property("org.kde.plasma.integration.waylandserverdecoration").isNull()) { | 83 | if(w->property("org.kde.plasma.integration.waylandserverdecoration").isNull()) { | ||
84 | shellSurfaceCreated(w); | 84 | shellSurfaceCreated(w); | ||
85 | } | 85 | } | ||
86 | } else if (event->type() == QEvent::Hide) { | 86 | } else if (event->type() == QEvent::Hide) { | ||
87 | QWindow *w = qobject_cast<QWindow*>(watched); | 87 | QWindow *w = qobject_cast<QWindow*>(watched); | ||
88 | if (!w || w->parent()) { | 88 | if (!w || w->parent()) { | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |