TWin: Add DCOP method showWindowMenu(wid) for default menu position

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/433/head
Mavridis Philippe 11 months ago
parent 6b30fb0791
commit ecd60bc6a5
No known key found for this signature in database
GPG Key ID: 93F66F98F906147D

@ -18,7 +18,8 @@ class KWinInterface : virtual public DCOPObject
virtual bool isResumeableWindowID(unsigned long winId) = 0;
virtual void refresh() = 0;
virtual void doNotManage(TQString)= 0;
virtual void showWindowMenuAt(unsigned long winId, int x, int y)= 0;
virtual void showWindowMenuAt(unsigned long winId, int x, int y) = 0;
virtual void showWindowMenu(unsigned long winId) = 0;
virtual void kDestopResized() = 0;
virtual void setDesktopLayout(int orientation, int x, int y)= 0;
virtual bool setCurrentDesktop(int)= 0;

@ -654,6 +654,16 @@ void Workspace::showWindowMenuAt( unsigned long window, int x, int y )
showWindowMenu( x, y, client );
}
void Workspace::showWindowMenu( unsigned long window )
{
Client *client;
if ((client = findClient(WindowMatchPredicate((WId)window))))
{
TQPoint pos = client->pos() + client->clientPos();
showWindowMenu( pos, client );
}
}
void Workspace::slotActivateAttentionWindow()
{
if( attention_chain.count() > 0 )

@ -204,8 +204,8 @@ class Workspace : public TQObject, public KWinInterface, public KDecorationDefin
void windowToNextDesktop( Client* c );
void sendClientToScreen( Client* c, int screen );
// KDE4 remove me - and it's also in the DCOP interface :(
void showWindowMenuAt( unsigned long id, int x, int y );
void showWindowMenu( unsigned long id );
void kDestopResized();
/**

Loading…
Cancel
Save