Changeset View
Changeset View
Standalone View
Standalone View
src/client/plasmashell.cpp
Show First 20 Lines • Show All 336 Lines • ▼ Show 20 Line(s) | 336 | { | |||
---|---|---|---|---|---|
337 | org_kde_plasma_surface_panel_auto_hide_show(d->surface); | 337 | org_kde_plasma_surface_panel_auto_hide_show(d->surface); | ||
338 | } | 338 | } | ||
339 | 339 | | |||
340 | void PlasmaShellSurface::setPanelTakesFocus(bool takesFocus) | 340 | void PlasmaShellSurface::setPanelTakesFocus(bool takesFocus) | ||
341 | { | 341 | { | ||
342 | org_kde_plasma_surface_set_panel_takes_focus(d->surface, takesFocus); | 342 | org_kde_plasma_surface_set_panel_takes_focus(d->surface, takesFocus); | ||
343 | } | 343 | } | ||
344 | 344 | | |||
345 | void PlasmaShellSurface::setPopupBehavior(PlasmaShellSurface::PopupBehaviorFlags behavior) | ||||
346 | { | ||||
347 | Q_ASSERT(isValid()); | ||||
348 | if (wl_proxy_get_version(d->surface) < ORG_KDE_PLASMA_SURFACE_SET_POPUP_BEHAVIOR_SINCE_VERSION) { | ||||
349 | return; | ||||
350 | } | ||||
351 | uint32_t wlRole = 0; | ||||
352 | if (behavior & PopupBehavior::AlwaysOnTop) { | ||||
353 | wlRole |= ORG_KDE_PLASMA_SURFACE_POPUP_BEHAVIOR_ALWAYS_ON_TOP; | ||||
354 | } | ||||
355 | org_kde_plasma_surface_set_popup_behavior(d->surface, wlRole); | ||||
356 | } | ||||
357 | | ||||
358 | | ||||
345 | } | 359 | } | ||
346 | } | 360 | } |