xlunch icon indicating copy to clipboard operation
xlunch copied to clipboard

is it possible to set WM_CLASS

Open Botspot opened this issue 2 years ago • 2 comments

Xlunch is used in the Pi-Apps project to display a list of apps that could be installed. We use Xlunch in windowed mode, like any other normal program.

On Xorg, everything works perfectly, including transparency and the running app icon. But Wayland does not allow programs to set their icons the same way Xorg does. The Wayland compositor most of us use is Wayfire, which picks its best guess of an appropriate icon based on the WM_CLASS.

In our other GTK windows, we always add a --class=Pi-Apps flag to ensure the icon is set correctly on Wayland. But Xlunch currently has no such option to my knowledge. Would you consider adding it?

Botspot avatar Mar 05 '24 06:03 Botspot

There is --name which sets part of WM_CLASS. But I agree that --class should probably also be implemented

PMunch avatar Mar 05 '24 10:03 PMunch

But I agree that --class should probably also be implemented

Awesome, keep us updated. 👍

Botspot avatar Mar 06 '24 07:03 Botspot