domferr / domferr/tilingshell

Set GDK_TOPLEVEL_STATE_TILED

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

Description

**Describe the feature you'd like**
I don't know if this is even possible, but it would be awesome if the `GDK_TOPLEVEL_STATE_TILED` flag could be set on tiled windows.

https://docs.gtk.org/gdk4/flags.ToplevelState.html

**Additional context**

The reason this feature would be really nice to have is that [Ptyxis](https://gitlab.gnome.org/chergert/ptyxis), the terminal emulator that becomes the default on more and more distros[^1][^2][^3], shrinks the window when closing the last tab, if the window is not tiled: [ptyxis-window.c#L686](https://gitlab.gnome.org/chergert/ptyxis/-/blob/main/src/ptyxis-window.c?ref_type=heads#L686)

[^1]: [Fedora switching to ptyxis](https://forge.fedoraproject.org/workstation/tickets/issues/417)
[^2]: [Ubuntu switching to ptyxis](https://en.ubunlog.com/This-is-Ptyxis--the-new-Gnome-terminal-for-modern-Linux-environments-that-will-use-Ubuntu-25./)
[^3]: [RHEL switching to ptyxis](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/html/considerations_in_adopting_rhel_10/changes-to-packages#package-replacements)

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.