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:
parent
8a2ee9e18e
commit
99fa5f16ed
3 changed files with 14 additions and 0 deletions
|
@ -14,6 +14,7 @@ class KWinInterface : virtual public DCOPObject
|
|||
virtual ASYNC reconfigure() = 0;
|
||||
virtual ASYNC killWindow() = 0;
|
||||
virtual void doNotManage(QString)= 0;
|
||||
virtual void showWindowMenuAt(unsigned long,int,int)= 0;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -1177,6 +1177,18 @@ QPopupMenu* Workspace::clientPopup( Client* c )
|
|||
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 ) {
|
||||
if ( !c )
|
||||
return;
|
||||
|
|
|
@ -158,6 +158,7 @@ public:
|
|||
|
||||
|
||||
QPopupMenu* clientPopup( Client* );
|
||||
void showWindowMenuAt( unsigned long id, int x, int y );
|
||||
|
||||
void setDesktopClient( Client* );
|
||||
|
||||
|
|
Loading…
Reference in a new issue