Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

feat(wayland): popup window #196

@wusyong

Description

@wusyong

While we can use muda to create context menu, it requires GTK as dependency.
We want to go with more native approach so I'm researching smithay-client-toolkit at the moment.
According to wayland protocol, we need to get window's wl_surface and obtain xdg_surface for it.
This means we also needs to get the xdg_wm_base global, but smithay_client_toolkit doesn't seem to have anywhere to explain how to get this.
The rests steps are almost from the method of xdg_wm_base as well.

If we could get the wl_surface of the popup window, we can think about how to add it into our Window type. Hence, it will be able to become a webview and render the menu we want to display.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-very-complexVery difficult. Do not attempt without significant relevant experience and motivation.enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions