Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-02-24 14:50:33

tdzito
Member
Registered: 2022-02-24
Posts: 6

Unwanted "gaps" in xfwm

(Sorry, I'm using deepl translator)

xterm https://imgur.com/9iYD2q0
xfce4-terminal https://imgur.com/SBsUi0S
lxterminal https://imgur.com/Qibs6H2
kitty https://imgur.com/yxRriBM

This unwanted "gap" happens with lxterminal, xfce4-terminal and xterm. With kitty the problem does not happen. Does anyone know the reason? Bug?

When I position the windows with xfwm shortcuts, with any positioning mode using keyboard shortcuts, whether the Tile Window option or not. The problem only happens using the keyboard shortcuts.

What is strange, is that this problem only happens with terminals, other applications that I use, like Firefox, Gimp,Mousepad etc. this does not happen.

I use Debian Bullseye, xfwm 4.16.1.

Offline

#2 2022-02-24 17:54:08

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Unwanted "gaps" in xfwm

Hello and welcome.

tdzito wrote:

When I position the windows with xfwm shortcuts, with any positioning mode using keyboard shortcuts, whether the Tile Window option or not. The problem only happens using the keyboard shortcuts.

Do you mean that if you have "Automatically tile windows..." enabled and you drag the window to a side or corner, that the window size is fine? If so, that is odd.

The xfce4-terminal window size is dependent on the geometry of the font size and dimensions of the window. This works differently than windows like thunar or mousepad that are sized based on pixel dimensions.

You can try to account for these minor discrepancies by padding the vte element inside the terminal window to in effect, add extra dimension to lessen the gap. The way to do this is to create, or add to, ~/.config/gtk-3.0/gtk.css the following content:

VteTerminal, vte-terminal {
        padding-left: 4px; padding-right: 4px;
	padding-top: 6px; padding-bottom: 6px;
}

Adjust the numeric values until the window fits properly.

Note that this will offset the text in the terminal window due to the padding.

Before:
before.png

After:
after.png


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2022-02-25 10:28:09

tdzito
Member
Registered: 2022-02-24
Posts: 6

Re: Unwanted "gaps" in xfwm

ToZ wrote:

Hello and welcome.

tdzito wrote:

When I position the windows with xfwm shortcuts, with any positioning mode using keyboard shortcuts, whether the Tile Window option or not. The problem only happens using the keyboard shortcuts.

Do you mean that if you have "Automatically tile windows..." enabled and you drag the window to a side or corner, that the window size is fine? If so, that is odd.

The xfce4-terminal window size is dependent on the geometry of the font size and dimensions of the window. This works differently than windows like thunar or mousepad that are sized based on pixel dimensions.

You can try to account for these minor discrepancies by padding the vte element inside the terminal window to in effect, add extra dimension to lessen the gap. The way to do this is to create, or add to, ~/.config/gtk-3.0.gtk.css the following content:

VteTerminal, vte-terminal {
        padding-left: 4px; padding-right: 4px;
	padding-top: 6px; padding-bottom: 6px;
}

Adjust the numeric values until the window fits properly.

Note that this will offset the text in the terminal window due to the padding.

Before:
https://i.ibb.co/N1Z9L6m/before.png

After:
https://i.ibb.co/9pbZC5h/after.png

It worked here. I changed the values to the most appropriate ones. Thanks a lot. xfce always amazes me.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 533.07 KiB (Peak: 533.91 KiB) ]