domferr / domferr/tilingshell

Incorrect size calculations with fractional scaling under X11

Open
#418 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2k
Forks
116
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When using Tiling Shell under X11 with fractional scaling enabled (150% in my case), sizes are calculated incorrectly.
It seems that the scaling factor is messed up for some reason, probably because X11 actually doesn't support fractional scaling, so it scales resolution to an integer value and then just downscales it back. The layout logic itself remains correct, only the actual size calculations are affected.

**To Reproduce**
Steps to reproduce the behavior:
Start a GNOME session under X11.
Enable fractional scaling (e.g. 150%) in Display Settings.
Trigger tiling layout.
Notice that window dimensions don’t match the expected one.

**Screenshots**

> Incorrect sizing under X11 + fractional scaling (150%)
Image

> Expected sizing
Image

**Information:**
Tiling Shell version: v17.0
GNOME version: v48.0

**Additional context**
This issue doesn’t occur on Wayland.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.