Skip to content

Set override_redirect for PopUps#42224

Merged
mikayla-maki merged 1 commit intozed-industries:mainfrom
Lieunoir:override_redirect
Dec 20, 2025
Merged

Set override_redirect for PopUps#42224
mikayla-maki merged 1 commit intozed-industries:mainfrom
Lieunoir:override_redirect

Conversation

@Lieunoir
Copy link
Contributor

@Lieunoir Lieunoir commented Nov 7, 2025

Currently on x11, gpui PopUp windows only rely on the "notification" type in order to indicate that they should spawn as floating window. Several window managers (leftwm in my case, but it also seems to be the case for dwm and ratpoison) do not this property into account thus not spawning them as float. On the other hand, using Floating instead of PopUp do make those windows spawn as floating, as these window manager do take into account the (older) "dialog" type.

The freedekstop documentation does seem to suggest that these windows should also have the override redirect property :

This property is typically used on override-redirect windows.

Note that this also disables pretty much all interactions with the window manager (such as moving the window, resizing etc...)

Release Notes:

  • Fix popup windows not spawning floating sometime on x11

@cla-bot
Copy link

cla-bot bot commented Nov 7, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @Lieunoir on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@Lieunoir
Copy link
Contributor Author

Lieunoir commented Nov 7, 2025

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 7, 2025
@cla-bot
Copy link

cla-bot bot commented Nov 7, 2025

The cla-bot has been summoned, and re-checked this pull request!

@mikayla-maki
Copy link
Member

Thanks!

@mikayla-maki mikayla-maki merged commit 42d5f7e into zed-industries:main Dec 20, 2025
26 checks passed
@github-project-automation github-project-automation bot moved this from Community PRs to Done in Quality Week – December 2025 Dec 20, 2025
rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
Currently on x11, gpui PopUp windows only rely on the "notification"
type in order to indicate that they should spawn as floating window.
Several window managers (leftwm in my case, but it also seems to be the
case for dwm and ratpoison) do not this property into account thus not
spawning them as float. On the other hand, using Floating instead of
PopUp do make those windows spawn as floating, as these window manager
do take into account the (older) "dialog" type.

The [freedekstop
documentation](https://specifications.freedesktop.org/wm/1.5/ar01s05.html#id-1.6.7)
does seem to suggest that these windows should also have the override
redirect property :
> This property is typically used on override-redirect windows. 

Note that this also disables pretty much all interactions with the
window manager (such as moving the window, resizing etc...)

Release Notes:

- Fix popup windows not spawning floating sometime on x11
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
Currently on x11, gpui PopUp windows only rely on the "notification"
type in order to indicate that they should spawn as floating window.
Several window managers (leftwm in my case, but it also seems to be the
case for dwm and ratpoison) do not this property into account thus not
spawning them as float. On the other hand, using Floating instead of
PopUp do make those windows spawn as floating, as these window manager
do take into account the (older) "dialog" type.

The [freedekstop
documentation](https://specifications.freedesktop.org/wm/1.5/ar01s05.html#id-1.6.7)
does seem to suggest that these windows should also have the override
redirect property :
> This property is typically used on override-redirect windows. 

Note that this also disables pretty much all interactions with the
window manager (such as moving the window, resizing etc...)

Release Notes:

- Fix popup windows not spawning floating sometime on x11
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
Currently on x11, gpui PopUp windows only rely on the "notification"
type in order to indicate that they should spawn as floating window.
Several window managers (leftwm in my case, but it also seems to be the
case for dwm and ratpoison) do not this property into account thus not
spawning them as float. On the other hand, using Floating instead of
PopUp do make those windows spawn as floating, as these window manager
do take into account the (older) "dialog" type.

The [freedekstop
documentation](https://specifications.freedesktop.org/wm/1.5/ar01s05.html#id-1.6.7)
does seem to suggest that these windows should also have the override
redirect property :
> This property is typically used on override-redirect windows. 

Note that this also disables pretty much all interactions with the
window manager (such as moving the window, resizing etc...)

Release Notes:

- Fix popup windows not spawning floating sometime on x11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

Development

Successfully merging this pull request may close these issues.

3 participants