Expose stackingOrder as read-only Q_PROPERTY in kwin/x11client.h
Closed, ResolvedPublic

Description

I'm thinking of creating an alternative to Present Windows and Desktop Grid effects based on QML. For that, it would be interesting to access the Client's stackingOrder in QML. I noticed that in the x11client.h file there is a public method called sessionStackingOrder(), maybe this method could be used to expose the Client's stackingOrder through: Q_PROPERTY (int stackingOrder READ sessionStackingOrder).

tcorreabr triaged this task as Wishlist priority.
zzag added a subscriber: zzag.Jan 23 2020, 10:13 PM

sessionStackingOrder() contains restored stacking order. Could you please explain why you need to have access to the Client's stacking order?

It would be for the opening and closing animations of the effect, which I think should be as similar as possible to the ones from Present Windows effect. But I think I can get the stacking order through the EffectWindowList stackingOrder() method of the EffectsHandlerImpl class. Anyway, thanks for your explanation.

tcorreabr closed this task as Resolved.Jan 27 2020, 9:06 PM