From 427941efea8e9bfa798c755929723529cee3d11d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 3 Sep 2002 16:47:41 +0000 Subject: [PATCH] Keep BC. svn path=/trunk/kdebase/kwin/; revision=175540 --- workspace.cpp | 4 ++-- workspace.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index 40a11e6776..8332704f6e 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -1411,7 +1411,7 @@ void Workspace::setActiveClient( Client* c ) { if ( active_client == c ) return; - if( popup && popup_client != c ) { + if( popup && static_cast< Client* >( popup_client ) != c ) { popup->close(); popup_client = 0; } @@ -1781,7 +1781,7 @@ void Workspace::performWindowOperation( Client* c, Options::WindowOperation op ) void Workspace::clientPopupActivated( int id ) { - performWindowOperation( popup_client ? popup_client : active_client, (Options::WindowOperation) id ); + performWindowOperation( popup_client ? static_cast< Client* >( popup_client ) : active_client, (Options::WindowOperation) id ); } /*! diff --git a/workspace.h b/workspace.h index a8ab00a92a..25b0ee569e 100644 --- a/workspace.h +++ b/workspace.h @@ -395,7 +395,7 @@ private: int number_of_desktops; QMemArray desktop_focus_chain; - Client* popup_client; + QGuardedPtr popup_client; void loadSessionInfo();