diff --git a/client.cpp b/client.cpp index fe437e6732..73315e6e79 100644 --- a/client.cpp +++ b/client.cpp @@ -598,6 +598,12 @@ void Client::unminimize( bool avoid_animation ) effects->windowUnminimized( effectWindow()); } +QRect Client::iconGeometry() const + { + NETRect r = info->iconGeometry(); + return QRect( r.pos.x, r.pos.y, r.size.width, r.size.height ); + } + extern bool blockAnimation; void Client::animateMinimizeOrUnminimize( bool minimize ) @@ -627,8 +633,7 @@ void Client::animateMinimizeOrUnminimize( bool minimize ) step = 40. * (11 - speed ); - NETRect r = info->iconGeometry(); - QRect icongeom( r.pos.x, r.pos.y, r.size.width, r.size.height ); + QRect icongeom = iconGeometry(); if ( !icongeom.isValid() ) return; diff --git a/client.h b/client.h index 1148a39a3c..01770a83fe 100644 --- a/client.h +++ b/client.h @@ -130,6 +130,7 @@ class Client MaximizeMode maximizeMode() const; bool isMinimizable() const; void setMaximize( bool vertically, bool horizontally ); + QRect iconGeometry() const; void setFullScreen( bool set, bool user ); bool isFullScreen() const;