Bug 485690 - X11 and Wayland use different Window Class Names
Summary: X11 and Wayland use different Window Class Names
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: rules (show other bugs)
Version: 6.0.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-17 18:48 UTC by Dominik Kummer
Modified: 2024-08-04 07:06 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Kummer 2024-04-17 18:48:03 UTC
Rules defined under X11 do not work under Wayland due to different Window Class Names.
Comment 1 David Edmundson 2024-05-14 21:04:15 UTC
Unfortunately we are sent different information. There's nothing magic we can do.
Comment 2 Dominik Kummer 2024-05-14 22:19:29 UTC
Hi David! arn't programmers a kind of magician?
Kwin then should iterate each rule at login time and re-fetch the information if needed depending
on wheter X11 or Wayland is used. So a separate field for Wayland could be required in the kwin rule config.

It would be fatal to leave the manual job up to the user.
Imagine someone using X11 on an notebook and Wayland on desktop,
but wants to share Window Rules between both devices.
Comment 3 Deckweiss75 2024-06-26 12:26:19 UTC
Maybe it could be stored in the file whether it applies for wayland or x11. Or store two different files.

Afaik other things already do that. For example display settings (orientation, position, scaling) are seperate on wayland and x11.
Comment 4 fanzhuyifan 2024-08-04 07:06:41 UTC
As noted, kwin is sent different information on x11 and wayland.