PistonDevelopers / PistonDevelopers/piston

Margin when using i3 tiling WM

Open
#1,252 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
4.7k
Forks
235
Avg merge
1m
Merged PRs (30d)
4

Description

When running the spinning-square example, the square isn't centered in the window and, when scaling down the window, margins will be visible at the right and top edge of the window like this:
margins in i3wm
The problem won't occur in xfwm4
no margins in xfwm4

The problem also won't occur if the window is initialized in floating mode (if i3 is configured to open windows in floating, which makes little sense for a tiling wm). The problem however persists if already opened windows are put into floating mode.
The problem won't appear with the glutin examples so it's not a pure glutin issue.

The exact same problem will occur with all the examples in the piston-examples repository

I don't know if the behaviour of tiling wms to ignore the window size requests of clients is standard but it would be nice for piston to work without problems anyways.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the spinning-square example in the Piston-Tutorials getting-started example and reproduce the behavior under i3, comparing it with xfwm4 and the glutin examples. Then inspect how the Piston examples initialize and size their windows. Done means the square is centered and no right or top margins appear when resizing under i3.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.