sway: improve borders for floating windows with CSDs

This commit is contained in:
Aly Raffauf 2024-08-24 10:59:37 -04:00
parent 0c98a474f2
commit 72f1b5f9f3
2 changed files with 11 additions and 1 deletions

View file

@ -166,7 +166,12 @@ in {
window = { window = {
titlebar = false; titlebar = false;
commands = [ commands = [
{
command = "border pixel 4"; # Workaround for libadwaita + CSD apps not having borders when floating.
criteria = {all = true;};
}
{ {
command = "floating enable; sticky toggle; resize 35ppt 10ppt"; command = "floating enable; sticky toggle; resize 35ppt 10ppt";
criteria = { criteria = {

View file

@ -49,7 +49,6 @@ in {
margin-bottom: 50px; margin-bottom: 50px;
margin-top: -100px; margin-top: -100px;
background: transparent;
padding: 0; padding: 0;
border: 0; border: 0;
min-height: 0; min-height: 0;
@ -57,6 +56,12 @@ in {
box-shadow: none; box-shadow: none;
} }
.titlebar,
.titlebar .background
{
border-radius: 0;
}
/* rm -rf window shadows */ /* rm -rf window shadows */
window.csd, /* gtk4? */ window.csd, /* gtk4? */
window.csd decoration { /* gtk3 */ window.csd decoration { /* gtk3 */