summaryrefslogtreecommitdiffstats
path: root/twin/useractions.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2023-12-07 16:26:47 +0200
committerMavridis Philippe <[email protected]>2023-12-21 19:53:03 +0200
commitecd60bc6a5f5181bb5013bea114fae5d8efaab47 (patch)
tree1eccd7e6eff9ff6368879722f59209483a49c886 /twin/useractions.cpp
parent6b30fb07918385ab02a97c27df5e3e2954f03487 (diff)
downloadtdebase-ecd60bc6a5f5181bb5013bea114fae5d8efaab47.tar.gz
tdebase-ecd60bc6a5f5181bb5013bea114fae5d8efaab47.zip
TWin: Add DCOP method showWindowMenu(wid) for default menu position
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'twin/useractions.cpp')
-rw-r--r--twin/useractions.cpp10
1 files changed, 10 insertions, 0 deletions
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 )