Terminal windows momentarily shrink and break tiling layout during clipboard operations

Open
#1,819 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
linux, typescript

Research direction

First reproduce the geometry change with wl-copy and wl-paste in Kitty, Foot, or WezTerm while tiling is enabled, then compare it with clipboard use from Yazi and Neovim. Inspect how pop-shell handles the affected terminal windows under Mutter on Wayland. Done means clipboard operations no longer resize the active window or corrupt the tiling layout.

Written by the indexing model from the issue text.

Description

Bug Description

Whenever wl-clipboard performs a clipboard operation, the active terminal window briefly shrinks for a split second. This occasionally corrupts the tiling layout.

This did not always happen and appears to have started recently.

Steps to Reproduce

  1. Enable tiling mode
  2. Open any terminal with a tiled layout
  3. Run any of the following:
    • wl-copy or wl-paste directly in the terminal
    • Copy a file path in Yazi (file manager)
    • Yank text in Neovim
  4. Observe the terminal window briefly shrink and occasionally snap into a broken tiling layout

Expected Behavior

Clipboard operations should have no effect on window geometry or tiling layout.

Actual Behavior

The active terminal window shrinks momentarily during any wl-clipboard operation. This occasionally causes the tiling layout to break and requires manual correction.

https://github.com/user-attachments/assets/8f35fcd7-2d86-46a2-95be-e6c3680f1dbb

Additional Notes

  • Tested across three different terminals: Kitty, Foot, and WezTerm — issue occurs in all of them
  • Tested with wl-copy --foreground — makes no difference
  • Affects both wl-copy and wl-paste
  • Also triggered by any application that uses wl-clipboard internally (confirmed with Yazi and Neovim)
  • Compiled pop-shell from the latest git repo to check if it was already fixed — issue persists
  • Screen recording attached

Environment

OS Fedora Linux 44 (Workstation Edition) x86_64
Host Dell OptiPlex 3070
Kernel 7.0.11-200.fc44.x86_64
GNOME 50.2
WM Mutter (Wayland)
pop-shell version 2 (also tested latest git build)
wl-clipboard version 2.2.1
Terminals tested Kitty 0.47.1, Foot, WezTerm
GPU Intel UHD Graphics 630 (Integrated)
Display Dual monitor — 2x 2560x1440 @ 60Hz
Dominant language
TypeScript
Stars
5.3k
Forks
318
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from pop-os/shell

All issues in pop-os/shell

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.