From 6ff8139d9eb15ddb6dab428efa98447aa48a4d71 Mon Sep 17 00:00:00 2001 From: Rik Hemsley Date: Sat, 14 Oct 2000 23:44:24 +0000 Subject: [PATCH] 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 --- client.cpp | 5 +++++ client.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/client.cpp b/client.cpp index 4e6d8501ce..fab17397d3 100644 --- a/client.cpp +++ b/client.cpp @@ -2692,6 +2692,11 @@ void Client::cloneMode(Client *client) setCaption(client->caption()); } +NETWinInfo * Client::netWinInfo() +{ + return static_cast(info); +} + NoBorderClient::NoBorderClient( Workspace *ws, WId w, QWidget *parent, const char *name ) : Client( ws, w, parent, name ) diff --git a/client.h b/client.h index 81073f6f38..cc4b9d66c1 100644 --- a/client.h +++ b/client.h @@ -19,6 +19,7 @@ Copyright (C) 1999, 2000 Matthias Ettrich 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();