From 1bfe2b9afd4372070efeeff1ba920131d8b4baa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 13 Nov 2007 19:25:44 +0000 Subject: [PATCH] Read more properties also for unmanaged windows. svn path=/trunk/KDE/kdebase/workspace/; revision=736251 --- toplevel.cpp | 4 ++-- unmanaged.cpp | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/toplevel.cpp b/toplevel.cpp index 322836d97b..5860a8c343 100644 --- a/toplevel.cpp +++ b/toplevel.cpp @@ -281,8 +281,8 @@ void Toplevel::getResourceClass() XClassHint classHint; if( XGetClassHint( display(), window(), &classHint ) ) { - // Qt3.2 and older had this all lowercase, Qt3.3 capitalized resource class - // force lowercase, so that workarounds listing resource classes still work + // Qt3.2 and older had this all lowercase, Qt3.3 capitalized resource class. + // Force lowercase, so that workarounds listing resource classes still work. resource_name = QByteArray( classHint.res_name ).toLower(); resource_class = QByteArray( classHint.res_class ).toLower(); XFree( classHint.res_name ); diff --git a/unmanaged.cpp b/unmanaged.cpp index f4138a7ef5..4077600abe 100644 --- a/unmanaged.cpp +++ b/unmanaged.cpp @@ -56,7 +56,10 @@ bool Unmanaged::track( Window w ) NET::WM2Opacity | 0; info = new NETWinInfo( display(), w, rootWindow(), properties, 2 ); - + getResourceClass(); + getWindowRole(); + getWmClientLeader(); + getWmClientMachine(); if( Extensions::shapeAvailable()) XShapeSelectInput( display(), w, ShapeNotifyMask ); detectShape( w );