From ecd60bc6a5f5181bb5013bea114fae5d8efaab47 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Thu, 7 Dec 2023 16:26:47 +0200 Subject: TWin: Add DCOP method showWindowMenu(wid) for default menu position Signed-off-by: Mavridis Philippe --- twin/useractions.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'twin/useractions.cpp') diff --git a/twin/useractions.cpp b/twin/useractions.cpp index 1bcd2dafa..dd29025db 100644 --- a/twin/useractions.cpp +++ b/twin/useractions.cpp @@ -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 ) -- cgit v1.2.1