hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.59k stars 826 forks source link

Add more render stages for decorations and window #6271

Open Micovec opened 3 months ago

Micovec commented 3 months ago

Description

At first I thought about making a PR but at the end decided to ask first because I might need some assistance with the PR and don't know if it's a right thing to add.

I would like to have more render stages so that plugins can hook to events before and after render of decorations and window contents.

I know that there are RENDER_PRE_WINDOW and RENDER_POST_WINDOW. But they are omitted before and after any window related render stuff. In some cases it would be handy to determine by plugin that "now decorations are going to be rendered", "now render of decorations ended", "now window content is going to be rendered" and "now render of window content ended".

I'm asking for this feature mainly because currently I'm stuck at #4386 . I'm able to change radii but that also affects decorations, border decorations as well which is not the intended behavior.

If needed I could create a PoC.

vaxerski commented 3 months ago

feel free, no opposition