Closed Bug 194299 Opened 22 years ago Closed 20 years ago

WM_CLASS is "<unknown> / <unknown>"

Categories

(SeaMonkey :: UI Design, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 29856

People

(Reporter: jwz, Assigned: blizzard)

References

Details

Attachments

(1 file)

'nuff said:

  % xprop -name "Mozilla {Build ID: 2003021120}" WM_CLASS
  WM_CLASS(STRING) = "<unknown>", "<unknown>"

Naturally this results in Mozilla windows not being labelled as such in the
Gnome Tasklist or in the window manager's window list.

Mozilla 1.3b
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030211
Red Hat Linux release 8.0 (Psyche)
Linux 2.4.18-14 #1 Wed Sep 4 12:13:11 EDT 2002 i686 athlon i386 GNU/Linux
to blizzard
Assignee: jaggernaut → blizzard
Blocks: gtk2
This is actually pretty nasty for those of us who rely on applications correctly
reporting their classes. This breaks the matched windows functionality in
Sawfish, for example, and there are probably other problems out there.
To be clear, this is about mozilla built with the gtk2 widget set. Bug 29856 is
about the window class when using gtk 1.

This patch is a followup to attachment 116067 [details] [diff] [review] to bug 29856 ("Set window class &
role, round 3"). This patch makes gtk2 do the same thing that patch does for
gtk1. This patch must be applied after the gtk1 patch; The gtk1 patch contains
some changes to pieces outside of widget/src/gtk* which aren't repeated in this
patch.

Briefly, after both patches have been installed, a gtk2 navigator window will
have the following properties:

    WM_WINDOW_ROLE(STRING) = "browser"
    WM_CLASS(STRING) = "Navigator", "Mozilla"
For the record, Mozilla 1.7 (gtk2) now seems to use

    WM_CLASS(STRING) = "Gecko", "Mozilla-bin"

which is better but still wrong (the first string should be the application
name, "Mozilla", and the second string should be the type of window, e.g.,
"Navigator", "Communicator", "Editor", "Bookmarks", "Chat", etc.)

*** This bug has been marked as a duplicate of 29856 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: Core → Mozilla Application Suite
Attachment #116068 - Flags: review?(blizzard)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: