diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2023-12-07 16:26:47 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2023-12-21 19:55:30 +0200 |
commit | 6c067940724bd28124ad6230261be4840928dcc4 (patch) | |
tree | cc636878d448248f2db6c3f2c81eb6b9b973a4e5 /twin/useractions.cpp | |
parent | 8447a9a65c165b4ad998e5d80529174e6f73903d (diff) | |
download | tdebase-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.cpp | 10 |
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 ) |