Replies: 4 comments
-
Niri already clips windows to their workspace only: Or what do you mean? Within the workspace windows are not clipped to anything in particular, so that e.g. the shadows aren't weirdly clipped when there's CSD (and, since currently the Smithay Other windows weirdly disappear with this client because the draw order in niri is sort of loosely defined: currently the active window is drawn on top, then it just goes through the windows in left-to-right order. This could be improved somewhat I guess, but the weirdness will show up no matter what in some configurations. |
Beta Was this translation helpful? Give feedback.
-
The thing is that when you make this window invisible, like scrolling to the left, you'll still see this massive subsurface. |
Beta Was this translation helpful? Give feedback.
-
That's kind of the same as when a window has a popup that extends some distance to the side: when you scroll the window off screen it will still be visible. I could add some threshold past which the window won't be rendered (or alternatively a clipping rectangle sized as geometry + threshold), if there are non-synthetic cases where this is a problem? |
Beta Was this translation helpful? Give feedback.
-
it's a bit different though, since it's just drawing outside geometry, and popup is on you to position inside parent geometry. Like the heuristic to cut thing like that is not that complex, because you generally want to cut stuff drawing outside of geometry when it goes beyond some limit (in your case could make it invisible or constraint to layout . |
Beta Was this translation helpful? Give feedback.
-
This approach to create wallpapers shouldn't work (apply to sctk)
Beta Was this translation helpful? Give feedback.
All reactions