cef icon indicating copy to clipboard operation
cef copied to clipboard

Linux: Views: Expose configuration of the WM_CLASS window property

Open magreenblatt opened this issue 3 years ago • 5 comments

Original report by me.


Some Linux window managers use the WM_CLASS property on the top-level window to control window grouping and desktop file matching. It is currently configurable in Chromium via Widget::InitParams::wm_class_name/wm_class_class and should be exposed for configuration via the CEF API when creating the CefWindow.

magreenblatt avatar Aug 30 '22 16:08 magreenblatt

The current workaround is to place a XSetClassHint + XFlush at the method that implements CefWindowDelegate::OnWindowCreated.

magreenblatt avatar Aug 30 '22 16:08 magreenblatt

  • changed kind from "bug" to "enhancement"

magreenblatt avatar Aug 30 '22 16:08 magreenblatt

  • changed title from "views: Linux: Expose configuration of the WM_CLASS window property" to "Linux: Views: Expose configuration of the WM_CLASS window property"

magreenblatt avatar Aug 30 '22 19:08 magreenblatt

Probably also need to set params.wayland_app_id, see DesktopBrowserFrameAuraLinux::GetWidgetParams

magreenblatt avatar Mar 04 '24 15:03 magreenblatt

We can add a CefWindowDelegate::GetLinuxWindowProperties method for retrieving wayland_app_id, wm_class_name and wm_class_class via a struct argument.

magreenblatt avatar Mar 18 '24 17:03 magreenblatt