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

GTK Shell: implement global menu get-set properties #2367

Open
rilian-la-te opened this issue May 26, 2024 · 0 comments
Open

GTK Shell: implement global menu get-set properties #2367

rilian-la-te opened this issue May 26, 2024 · 0 comments
Labels
enhancement low-priority Issues that aren't likely to be resolved soon

Comments

@rilian-la-te
Copy link

/**
 *  In gnome-shell/mutter/meta windows/views keep track of the properties
 *  specified as arguments here.
 *  Currently only the app_id is implemented / required.
 */
static void handle_gtk_surface_set_dbus_properties(wl_client *client,
    wl_resource *resource,
    const char *application_id, const char *app_menu_path, const char *menubar_path,
    const char *window_object_path, const char *application_object_path,
    const char *unique_bus_name)
{
    auto surface = static_cast<wf_gtk_surface*>(wl_resource_get_user_data(resource));
    if (application_id)
    {
        wf::get_core().get_data_safe<wf_gtk_shell>()->surface_app_id[surface->wl_surface] = application_id;
    }
}

I think it will be good if it will be possible to query and set other properties, because it will open Global Menu to work. Maybe it is worth to make it separate plugin along with KDE global menu protocol.

@ammen99 ammen99 added the low-priority Issues that aren't likely to be resolved soon label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement low-priority Issues that aren't likely to be resolved soon
Projects
None yet
Development

No branches or pull requests

2 participants