Skip to content

Commit

Permalink
Skip shadow if window is maximized or tiled
Browse files Browse the repository at this point in the history
Fixes yilozt#6.
  • Loading branch information
velitasali committed Aug 3, 2022
1 parent 212355c commit 5434e9e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/manager/rounded-corners-manager.ts
Original file line number Diff line number Diff line change
@@ -272,11 +272,19 @@ export class RoundedCornersManager {
const child = actor.first_child as Bin
child.style = `background: white;
border-radius: ${border_radius * scale_of_style}px;
${types.box_shadow_css (shadow, scale_of_style)};
margin: ${top * scale_of_style}px
${right * scale_of_style}px
${bottom * scale_of_style}px
${left * scale_of_style}px;`
if (
!win.maximized_horizontally &&
!win.maximized_vertically &&
!win.fullscreen
) {
child.style += `
${types.box_shadow_css (shadow, scale_of_style)};`
}

child.queue_redraw ()
}

0 comments on commit 5434e9e

Please sign in to comment.