-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draw shadows or borders around concept frame decorations #162
Comments
Looks like subsurfaces with buffers are currently allocated for the border, even though nothing is drawn there. (These helped uncover a fun bug in Wayfire, hehe.) When shadows/borders are implemented, if the application is able to turn them off: the subsurfaces should not be created if they won't be drawn and only the title bar will be. Ideally they should be deallocated when fullscreened too? client-toolkit/src/window/concept_frame.rs Line 548 in 0bbda78
(btw, I hope "fullscreened" here includes "tiled") |
@myfreeweb subsurfaces are not presented when you do client-toolkit/src/window/concept_frame.rs Line 513 in 0bbda78
|
No, I mean, not when everything is hidden, but when the title bar is drawn but not the borders. |
Yeah, I think they should be removed entire for fullscreen and other states properly as well, will require some refactoring. |
@myfreeweb the issue you're talking about is #105 |
@myfreeweb these transparent subsurfaces are necessary and need to exist, as they serve to receive pointer input to allow the user to start an interactive resize of the window, so we need to draw them even if their content is empty (unless the window is tiled, as @kchibisov noted). |
Following #183, the decorations provided in SCTK are explicitly |
Having 2 sctk windows one over another could become challenging identify the where one window ends and other starts, since there's neither border nor shadows. GTK users shadows for such thing for example.
It's very noticeable with alacritty , which window is just one solid colored rectangle.
The text was updated successfully, but these errors were encountered: