Read more properties also for unmanaged windows.

svn path=/trunk/KDE/kdebase/workspace/; revision=736251
icc-effect-5.14.5
Luboš Luňák 2007-11-13 19:25:44 +00:00
parent a10061ed6f
commit 1bfe2b9afd
2 changed files with 6 additions and 3 deletions

View File

@ -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 );

View File

@ -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 );