Added a new method to the DCOP interface that displays the window menu

for a specified WId.

svn path=/trunk/kdebase/kwin/; revision=70680
This commit is contained in:
Richard J. Moore 2000-11-12 20:25:21 +00:00
parent 8a2ee9e18e
commit 99fa5f16ed
3 changed files with 14 additions and 0 deletions

View file

@ -14,6 +14,7 @@ class KWinInterface : virtual public DCOPObject
virtual ASYNC reconfigure() = 0; virtual ASYNC reconfigure() = 0;
virtual ASYNC killWindow() = 0; virtual ASYNC killWindow() = 0;
virtual void doNotManage(QString)= 0; virtual void doNotManage(QString)= 0;
virtual void showWindowMenuAt(unsigned long,int,int)= 0;
}; };

View file

@ -1177,6 +1177,18 @@ QPopupMenu* Workspace::clientPopup( Client* c )
return popup; return popup;
} }
void Workspace::showWindowMenuAt( unsigned long id, int x, int y )
{
Client *target = findClient( id );
if (!target)
return;
QPopupMenu* p = clientPopup( target );
p->setFocus();
p->popup( QPoint( x, y ) );
}
void Workspace::performWindowOperation( Client* c, Options::WindowOperation op ) { void Workspace::performWindowOperation( Client* c, Options::WindowOperation op ) {
if ( !c ) if ( !c )
return; return;

View file

@ -158,6 +158,7 @@ public:
QPopupMenu* clientPopup( Client* ); QPopupMenu* clientPopup( Client* );
void showWindowMenuAt( unsigned long id, int x, int y );
void setDesktopClient( Client* ); void setDesktopClient( Client* );