diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-01 09:45:57 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-10 07:59:14 +0300 |
| commit | 88614c08fe0a7833cbb749a6ecf3e703eb373c6e (patch) | |
| tree | f8dfa7b6b1802a355eb42fb7abc0f46a224928c1 /src/layout/workspace.rs | |
| parent | 4f5c8e745bec6395105138c83468bccb4ab27ea9 (diff) | |
| download | niri-88614c08fe0a7833cbb749a6ecf3e703eb373c6e.tar.gz niri-88614c08fe0a7833cbb749a6ecf3e703eb373c6e.tar.bz2 niri-88614c08fe0a7833cbb749a6ecf3e703eb373c6e.zip | |
Make interactively moved window semitransparent
Diffstat (limited to 'src/layout/workspace.rs')
| -rw-r--r-- | src/layout/workspace.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index 0e4c1af5..1cb55233 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -1757,6 +1757,11 @@ impl<W: LayoutElement> Workspace<W> { if visible { assert_eq!(anim.to(), 1., "visible tiles can animate alpha only to 1"); } + + assert!( + !alpha.hold_after_done, + "tiles in the layout cannot have held alpha animation" + ); } } } |
