Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Enable Resizing Exactly According to User-Specified Geometry #433

Open
marcxjo opened this issue May 31, 2023 · 0 comments

Comments

@marcxjo
Copy link
Contributor

marcxjo commented May 31, 2023

When attempting to manually set window geometry via an external tool, mate-terminal rounds the provided height exact line height and the provided width to a multiple of the terminal font's character width.

I understand the rationale for this choice, but there's an argument that the user should have the right to override it, even if the resulting geometry produces "spare pixels" on the edges.

I believe a reasonable compromise would be akin to xfce4-terminal's behavior, where the first invocation snaps to line height and length, then sets dimensions exactly as specified if the terminal dimensions are already quantized.

Note that I am specifically requesting this functionality only for use with e.g. external tools used to specify geometry. I am not requesting that its behavior be altered for the purposes of e.g. resizing by mouse.

Expected behaviour

When I configure MATE Terminal's window geometry via a tool like xdotool, I expect to be able to set the geometry exactly according to the values passed in for height and width.

Actual behaviour

When using xdotool for this purpose, windows are resized, but the dimensions appear to be rounded to the nearest values that ensure no spare pixels on either the vertical or horizontal edge (i.e., window dimensions are snapped to the nearest line height and length).

Steps to reproduce the behaviour

  • In the same terminal that you wish to resize, run
xdotool getactivewindow windowsize 400 400
  • After running and letting the window resize itself, run
xdotool getactivewindow getwindowgeometry
  • The resulting geometry on my screen is 434x386

MATE general version

1.26

Package version

$ pacman -Q mate-terminal 
mate-terminal 1.26.1-1

Linux Distribution

Arch Linux - all packages up-to-date as of roughly 2 hours prior to this report

Link to bugreport of your Distribution (requirement)

Not currently filed - able to reproduce in multiple distros, including Mageia and Fedora

@marcxjo marcxjo changed the title [Feature Request] Resize [Feature Request] Enable Resizing Exactly According to User-Specified Geometry May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant