-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Displaying pop-ups as floating windows. #3095
Comments
In i3 zenity uses X11, which sets the window as a dialog window. In sway it uses Wayland which has no "window type". So we can't do anything about it. Note that if zenity was making the window non-resizable, we would make it floating. |
You could probably use criteria to make zenity windows floating by default. |
Thanks for the clarification! So Wayland has nothing similar to "window type"? Seems like a huge design oversight to me... |
Window types are essentially useless. It's pretty uncommon to have dialog windows without a parent. In this particular case I think zenity should make its dialog non-resizable. |
I see. Thank you! |
Wayland has shells, which is "kind-of" like a window type, but not really the same thing in an X11 sense. |
So, it seems nearly impossible to float a pop-up window created by Chrome or Firefox when either app is using its Wayland backend. I came up with a super hacky workaround - a userscript that tries to detect pop-up windows based on the |
could you find a better way? |
I installed mako and it works fine with Sway and Firefox. |
Just to clarify (in case someone else stumbles upon this): after installing I suppose that Firefox checks if there is a notification service registered on D-BUS.
I suppose (but your guess is as good as mine!) that Firefox checks once on start-up if there is a notification service available (and that it's why I had to restart Firefox for things to start working). |
Sorry, to comment on such an old issue. However, Zenity dialogues were indeed marked as non-resizable with this commit and the windows now open in floating mode by default. Just putting this here for google :) |
On Sway (and probably other Wayland compositors, at least `wlroots` ones), windows default to being tiled. For windows which are not resizable, they instead default to being in float mode. See swaywm/sway#3095 for reference. I don't think there's a good reason for having the password generator popup be resizable (and even looks awful when stretched vertically). - Added a size policy to marking the window with a fixed width. This requires having a minimum and maximum size on the widget. - Copied the original geometry size with `fixedWidth` to automatically generate `minimumSize` and `maximumSize`, to avoid repeating the same property values reduntantly in the ui file.
On Sway (and probably other Wayland compositors, at least `wlroots` ones), windows default to being tiled. For windows which are not resizable, they instead default to being in float mode. See swaywm/sway#3095 for reference. I don't think there's a good reason for having the password generator popup be resizable (and even looks awful when stretched vertically). - Added a size policy to marking the window with a fixed width. This requires having a minimum and maximum size on the widget. - Copied the original geometry size with `fixedWidth` to automatically generate `minimumSize` and `maximumSize`, to avoid repeating the same property values reduntantly in the ui file.
I hope I am welcome :S
This is a feature request so I will forego the other formalities you asked for. In
i3
some windows are opened as pop-ups. That is to say, they are openened in the "floating" mode. I am not aware how this works technically I also don't know if it works for some programs under sway. It does not work withzenity
.Minimal repro:
Desired behaviour: A small floating window is opened.
Actual behaviour: A new tiled window is displayed.
Is this something that you have support for that may be a problem with my installation? I recently build this from source, so I may have messed something up. Floating windows do work for me though.
The text was updated successfully, but these errors were encountered: