summaryrefslogtreecommitdiffstats
path: root/twin/useractions.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2023-12-07 16:26:47 +0200
committerMavridis Philippe <mavridisf@gmail.com>2023-12-21 19:55:30 +0200
commit6c067940724bd28124ad6230261be4840928dcc4 (patch)
treecc636878d448248f2db6c3f2c81eb6b9b973a4e5 /twin/useractions.cpp
parent8447a9a65c165b4ad998e5d80529174e6f73903d (diff)
downloadtdebase-6c067940724bd28124ad6230261be4840928dcc4.tar.gz
tdebase-6c067940724bd28124ad6230261be4840928dcc4.zip
TWin: Add DCOP method showWindowMenu(wid) for default menu position
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> (cherry picked from commit ecd60bc6a5f5181bb5013bea114fae5d8efaab47)
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 )