Bug 83974 - improper value of WM_CLASS property
Summary: improper value of WM_CLASS property
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 85263 146151 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-25 09:31 UTC by Mikolaj Machowski
Modified: 2007-11-22 21:19 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikolaj Machowski 2004-06-25 09:31:36 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc3.3.1 
OS:                Linux

Konsole has wrong value of WM_CLASS. Check with
xprop | grep WM_CLASS

It is "Qt-subapplication" not (k|K)onsole.
Comment 1 Waldo Bastian 2004-06-25 12:00:46 UTC
This is because konsole now opens the X-display itself and passes an open X-connection to QApplication. This causes QApplication to use different values for qAppName and qAppClass. QApplication also doesn't parse command line options this way so this needs to be done differently.
Comment 2 Lubos Lunak 2004-07-30 16:56:01 UTC
*** Bug 85263 has been marked as a duplicate of this bug. ***
Comment 3 Waldo Bastian 2004-07-31 15:11:00 UTC
CVS commit by waba: 

Disable COMPOSITE, the QApplication constructor required for it doesn't
parse command line arguments and fails to set qAppClass. (BR83974)
Can be reenabled once Qt has proper support for it.
CCMAIL: 83974-done@bugs.kde.org


  M +6 -0      main.cpp   1.268


--- kdebase/konsole/konsole/main.cpp  #1.267:1.268
@@ -35,7 +35,11 @@
 #include "konsole.h"
 
+// COMPOSITE disabled by default because the QApplication constructor
+// needed to enable the ARGB32 visual has undesired side effects.
+#if 0
 #if defined(Q_WS_X11) && defined(HAVE_XRENDER) && QT_VERSION >= 0x030300
 # define COMPOSITE
 #endif
+#endif
 
 #ifdef COMPOSITE
@@ -64,5 +68,7 @@ static KCmdLineOptions options[] =
    { "noscrollbar",     I18N_NOOP("Do not display scrollbar"), 0 },
    { "noxft",           I18N_NOOP("Do not use Xft (Anti-Aliasing)"), 0 },
+#ifdef COMPOSITE
    { "noargb",          I18N_NOOP("Do not use the ARGB32 visual (Transparency)"), 0 },
+#endif
    { "vt_sz CCxLL",     I18N_NOOP("Terminal size in columns x lines"), 0 },
    { "noresize",        I18N_NOOP("Terminal size is fixed"), 0 },


Comment 4 Patrick 2007-05-28 13:44:52 UTC
Seems like this bug has been re-introduced in KDE 3.5.7 (Konsole 1.6.6).

xprop yields
WM_CLASS(STRING) = "Qt-subapplication", ""
Comment 5 Eike Hein 2007-05-28 13:47:19 UTC
Ditto. Reopening.
Comment 6 Robert Knight 2007-05-28 14:59:14 UTC
Yes, my bad.  I think I have a patch provided by Lubos to fix this.
Comment 7 Lubos Lunak 2007-05-29 16:34:07 UTC
Qt-copy patch #0078 and r669488 should fix this in a gross way for KDE3. Keeping open as the KDE4 way should be preferably somewhat nicer.
Comment 8 Robert Knight 2007-05-31 00:41:07 UTC
*** Bug 146151 has been marked as a duplicate of this bug. ***
Comment 9 Will Stephenson 2007-11-22 21:19:50 UTC
Fixed in KDE4 too.