Bug 327654 - add rule to override the window icon
Summary: add rule to override the window icon
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: rules (other bugs)
Version First Reported In: 4.10.5
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-15 15:00 UTC by Cade
Modified: 2023-01-24 12:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cade 2013-11-15 15:00:45 UTC
We need ability to force change window icon
to user icon through dialog
"System settings" -> "Window behavior" -> "Window rules".

Reproducible: Always

Steps to Reproduce:
1. Open idle (python ide, gui used Tcl/tc).
2. Press alt+tab.
Actual Results:  
"idle" window has default X icon.
Rules in
"System settings" -> "Window behavior" -> "Window rules"
does not allow to change window icon.

Expected Results:  
Icon of "idle" window must be python logo.
We use rules in
"System settings" -> "Window behavior" -> "Window rules"
for change window icon.

Another example.
"gimp" uses small copy of edited image as window icon.
We must can prevent these behavior and set
constant icon with window rules.

Yet another example.
"Flash player" (full screen) does not have
application icon and does not have normal window
class name (just "exe").
We must have way to change "Flash player's"
window properties (include icon).
Comment 1 Thomas Lübking 2013-11-15 15:44:14 UTC
The correct way here is to fix the client to set an icon.
-> file a bugreport there.

This approach is totally gonna fail if the client wants to set icons to indicate certain states or whatever.
The rules are meant to workaournd client bugs, not to fix a whole category of clients (python, wine, whatever)

The present way to alter the icon is to just set the resp. X11 property.

Undetectable windows (casually "wine") could not be handled through this at all - you could only assign an icon at runtime (what is certainly not what you want)