Skip to content

Commit

Permalink
Fix jumping windows SSD
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Jan 24, 2024
1 parent d36281b commit f109248
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions Helium/gtk-4.0/widgets/_window.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
window {
// lamefun trick to get rounded borders regardless of CSD use
border-width: 0px;

&.csd {
Expand All @@ -12,10 +11,10 @@ window {
outline-offset: -1px;

&:backdrop {
box-shadow: shadow(4),
0 6px 10px 4px transparent,
0 0 0 1px rgba(black, 0.05);
transition: $backdrop_transition;
// The first transparent is to avoid jumping
box-shadow: 0 6px 30px 5px transparent,
shadow(5),
0 0 0 1px rgba(black, 0.1);
}

&.dialog.message {
Expand All @@ -38,7 +37,7 @@ window {
outline: none;

box-shadow: 0 0 0 1px $border_color,
0 0 0 20px transparent; //transparent control workaround -- #3670
0 0 0 20px transparent;

&:backdrop {
box-shadow: 0 0 0 1px $border_color,
Expand All @@ -51,7 +50,6 @@ window {
border-radius: 0;
outline: none;
box-shadow: none;
transition: none;
}
}

Expand All @@ -69,10 +67,4 @@ window {
inset 0 0 0 1px $border_color;
}
}

// server-side decorations as used by mutter
&.ssd {
// just doing borders, wm draws actual shadows
box-shadow: 0 0 0 1px rgba(black, 0.1);
}
}

0 comments on commit f109248

Please sign in to comment.