Changeset View
Changeset View
Standalone View
Standalone View
krunner/view.cpp
Show First 20 Lines • Show All 224 Lines • ▼ Show 20 Line(s) | 222 | if (event->type() == QEvent::PlatformSurface) { | |||
---|---|---|---|---|---|
225 | } | 225 | } | ||
226 | } | 226 | } | ||
227 | if (setState) { | 227 | if (setState) { | ||
228 | KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager); | 228 | KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager); | ||
229 | } | 229 | } | ||
230 | 230 | | |||
231 | if (m_plasmaShell && event->type() == QEvent::Expose) { | 231 | if (m_plasmaShell && event->type() == QEvent::Expose) { | ||
232 | using namespace KWayland::Client; | 232 | using namespace KWayland::Client; | ||
233 | if (!m_plasmaShellSurface) { | 233 | auto ee = static_cast<QExposeEvent*>(event); | ||
234 | | ||||
235 | if (ee->region().isNull()) { | ||||
236 | return retval; | ||||
237 | } | ||||
238 | | ||||
239 | if (!m_plasmaShellSurface && isVisible()) { | ||||
234 | Surface *s = Surface::fromWindow(this); | 240 | Surface *s = Surface::fromWindow(this); | ||
235 | if (!s) { | 241 | if (!s) { | ||
236 | return retval; | 242 | return retval; | ||
237 | } | 243 | } | ||
238 | m_plasmaShellSurface = m_plasmaShell->createSurface(s, this); | 244 | m_plasmaShellSurface = m_plasmaShell->createSurface(s, this); | ||
239 | m_plasmaShellSurface->setRole(PlasmaShellSurface::Role::Panel); | 245 | m_plasmaShellSurface->setRole(PlasmaShellSurface::Role::Panel); | ||
240 | m_plasmaShellSurface->setPanelBehavior(PlasmaShellSurface::PanelBehavior::WindowsGoBelow); | 246 | m_plasmaShellSurface->setPanelBehavior(PlasmaShellSurface::PanelBehavior::WindowsGoBelow); | ||
241 | m_plasmaShellSurface->setPanelTakesFocus(true); | 247 | m_plasmaShellSurface->setPanelTakesFocus(true); | ||
▲ Show 20 Lines • Show All 199 Lines • Show Last 20 Lines |