[Bug 50095] New: Allow user specified WM_CLASS value
https://bugs.winehq.org/show_bug.cgi?id=50095 Bug ID: 50095 Summary: Allow user specified WM_CLASS value Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: winex11.drv Assignee: wine-bugs(a)winehq.org Reporter: arealityfarbetween(a)googlemail.com Distribution: --- Created attachment 68570 --> https://bugs.winehq.org/attachment.cgi?id=68570 Allow user to set WM_CLASS via his environment Hi, The name of the executable is currently used as the WM_CLASS set by winex11.drv however this doesn't work reliably in cases where the executable name is the same, e.g. I have a few windows games on my system where the executable is simply named "game.exe", leading to one game being associated with another's icon in GNOME's running applications panel. I can get around this problem by using a symlink but that approach isn't ideal - in the case I tried I also had to create a symlink for another directory located in the directory where the exe was located. I've enclosed a patch that allows the user to specify WINEWMCLASS in his environment and have wine use that value as an alternative to the default behaviour. Let me know what you think. Thanks -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=50095 Nicholas Little <arealityfarbetween(a)googlemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P5 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=50095 Nicholas Little <arealityfarbetween(a)googlemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #68570|0 |1 is obsolete| | --- Comment #1 from Nicholas Little <arealityfarbetween(a)googlemail.com> --- Created attachment 68977 --> https://bugs.winehq.org/attachment.cgi?id=68977 Allow user to set WM_CLASS via his environment -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=50095 François Gouget <fgouget(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |fgouget(a)codeweavers.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=50095 Sean C. Farley <sean-freebsd(a)farley.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sean-freebsd(a)farley.org --- Comment #2 from Sean C. Farley <sean-freebsd(a)farley.org> --- (In reply to Nicholas Little from comment #1)
Created attachment 68977 [details] Allow user to set WM_CLASS via his environment
Thank you! I found this useful when specifying a "wine_game" WM_CLASS for Fluxbox to detect and remove decorations for the app without having to specify each game separately. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla