wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

session lock surface: animate

Open NamorNiradnug opened this issue 1 year ago • 2 comments

Session lock surface is currently appears without animation. Would be nice if it'd be animated.

NamorNiradnug avatar Jan 01 '25 09:01 NamorNiradnug

If anyone is looking in doing this, we would need to have the lock surface not be a regular surface + node attached to the scenegraph, but also a view. The existing code does most of the 'hard' work - input grabs, rendering, etc. The view implementation does not have to do much - see for a reference the colored rect views https://github.com/WayfireWM/wayfire/blob/3c0da507b913ba658eb9df5d88f86bbaa70486c3/src/view/compositor-view.cpp#L100-L182

ammen99 avatar Jan 01 '25 12:01 ammen99

If anyone is looking in doing this, we would need to have the lock surface not be a regular surface + node attached to the scenegraph, but also a view. The existing code does most of the 'hard' work - input grabs, rendering, etc. The view implementation does not have to do much - see for a reference the colored rect views

https://github.com/WayfireWM/wayfire/blob/3c0da507b913ba658eb9df5d88f86bbaa70486c3/src/view/compositor-view.cpp#L100-L182

Thanks, I was also thinking about that! I'm going to implement it in a few days.

NamorNiradnug avatar Jan 01 '25 17:01 NamorNiradnug