Skip to content
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

Trouble keeping popups above other windows #344

Open
researcher2312 opened this issue May 25, 2024 · 2 comments
Open

Trouble keeping popups above other windows #344

researcher2312 opened this issue May 25, 2024 · 2 comments

Comments

@researcher2312
Copy link

I create a popup and add it as an object to my top bar. Then I hide and show it when needed. But regardless of moving it to top and keeping above other windows it is hidden below windows which were opened after the popup was created. Is it possible to have the popup be always on top of other windows without killing it and creating again each time?

class VolumePopup(PopupGridLayout):
    def __init__(self, qtile):
        self.is_visible = False
        super().__init__(qtile, ....)

@lazy.function
def show_popup(qtile):
    bar = qtile.screens[0].top
    if bar.popup == None:
        bar.popup = VolumePopup(qtile)
    popup = bar.popup
    if popup.is_visible:
        popup.is_visible = False
        popup.hide()
    else:
        popup.is_visible = True
        popup.show(relative_to=3, relative_to_bar=True, x=-3, y=5)
        popup.popup.win.keep_above(True)
        popup.popup.win.move_to_top()
        popup.update_controls(volume=bar.get_volume())
@elParaguayo
Copy link
Owner

Are you on Wayland or X11?

The popup code was created before we added layer support so I should probably add some code to make this easier to do.

@researcher2312
Copy link
Author

researcher2312 commented May 26, 2024

This is on X11 version 21.1.11
Ubuntu 24.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants