Making NETWinInfo visible.

It's actually a derived class, but we can safely static_cast it back
to NETWinInfo. Makes it easier for clients to use it.

svn path=/trunk/kdebase/kwin/; revision=67689
This commit is contained in:
Rik Hemsley 2000-10-14 23:44:24 +00:00
parent a0b6bdb956
commit 6ff8139d9e
2 changed files with 8 additions and 0 deletions

View file

@ -2692,6 +2692,11 @@ void Client::cloneMode(Client *client)
setCaption(client->caption());
}
NETWinInfo * Client::netWinInfo()
{
return static_cast<NETWinInfo *>(info);
}
NoBorderClient::NoBorderClient( Workspace *ws, WId w, QWidget *parent, const char *name )
: Client( ws, w, parent, name )

View file

@ -19,6 +19,7 @@ Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
class Workspace;
class Client;
class WinInfo;
class NETWinInfo;
class WindowWrapper : public QWidget
{
@ -233,6 +234,8 @@ protected:
bool propertyNotify( XPropertyEvent& e );
bool clientMessage( XClientMessageEvent& e );
NETWinInfo * netWinInfo();
private:
QSize sizeForWindowSize( const QSize&, bool ignore_height = FALSE ) const;
void getWmNormalHints();