ubuntu / ubuntu/Tiling-Assistant

Window snapping after reopening introduces unnecessary offset

Open
#460 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
1.3k
Forks
78
PR merge metrics
No merged PRs in 30d

Description

Affected version

  • Ubuntu: Ubuntu 26.04 LTS
  • GNOME Shell: GNOME Shell 50.1
  • Session: wayland
  • Kernel: 7.0.0-28-generic
  • Graphics: 00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)

Bug summary

Trying to snap a previously snapped window to one side introduces an unnecessary offset (please watch the video; I don't know how to explain it in words).

Steps to reproduce

  1. Open Google Chrome and snap it to the right.
  2. Open VS Code and snap it to the left.
  3. Close VS Code.
  4. Reopen VS Code and snap it to the left again.

What happened

It snapped the window to the left, but left a huge gap in between and a big portion outside the display.

What did you expect to happen

No gap, nothing outside the display.

Screencast

https://github.com/user-attachments/assets/15b6b609-ef1c-4d09-9d14-d6ca7c824f1c

Does it happen on both sides?

Yes. When it occurs on the left side, it offsets to the left. When it occurs on the right side, it offsets to the right. Here is a screenshot of it occuring in the right side:

Image

Does it consistently occur every single time

Yes.

Does doing something solve the issue

Yes, disabling the tiling assistant extension using the following command fixes the issue:

gnome-extensions disable tiling-assistant@ubuntu.com

However, re-inabling it brings back the issue.

Contributor guide

No contributing guide indexed for this repository

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 by reproducing the sequence with Chrome and VS Code on Ubuntu GNOME Wayland, then repeat it with the tiling-assistant@ubuntu.com extension disabled to confirm the comparison. Trace the snapping and window-reopening behavior implicated by the reproduction; done means reopened windows snap flush to either side without gaps or extending beyond the display.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.