cortile icon indicating copy to clipboard operation
cortile copied to clipboard

Gaps around GTK apps, Firefox, and other apps that have client-side decorations

Open puyoxyz opened this issue 3 years ago • 1 comments

There are huge gaps around anything that has client side decorations because of the shadow:

image

For Firefox, you can just disable its client side decorations ("Title bar" option at the bottom of the customize screen), but what about GTK?

puyoxyz avatar May 09 '22 03:05 puyoxyz

AFAIK there is no way to obtain the margin values caused by client side decorations (using the EWMH protocol). Therefore cortile is not aware of any additional layout changes, that may lead to those gaps.

Depending on your operating system and window manager settings (theme, border, shadow, ...) you can search for Disable GTK3 Client-Side Decorations. However, this could cause minor cosmetic damage to your desired appearance of windows.

For default Xfce desktop environments create a file /home/USER/.config/gtk-3.0/gtk.css with the content:

decoration {
    margin: 0px;
    padding: 0px;
    border: none;
    box-shadow: none;
}

This will disable most of the client-side decorations that might cause this problem.

Let me know if you have found a solution to your particular problem.

leukipp avatar May 09 '22 20:05 leukipp

This was solved with the suggestions from mark-cooke (#5). Please have a look at the latest release and let me know if you find any further issues.

leukipp avatar Apr 17 '23 09:04 leukipp