diff options
author | Mavridis Philippe <[email protected]> | 2023-12-03 11:43:07 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2023-12-21 19:55:29 +0200 |
commit | e67f30eb1f9c033d765fbae20eacc30d60ed4095 (patch) | |
tree | 143eb87fafff070efdcc350a394247c7857d7a59 /twin | |
parent | fa7aa947c8fd0e83f79874e2f6c8813254f7a181 (diff) | |
download | tdebase-e67f30eb1f9c033d765fbae20eacc30d60ed4095.tar.gz tdebase-e67f30eb1f9c033d765fbae20eacc30d60ed4095.zip |
twin: fix showWindowMenuAt(...) DCOP call
Before it only called slotWindowOperations(), which showed the operations menu of the current window at a preset position, ignoring all arguments passed to showWindowMenuAt.
This commit implpements the correct behaviour of the function which takes all arguments into account.
Signed-off-by: Mavridis Philippe <[email protected]>
(cherry picked from commit 6c0d9ec42e6c08afe9235995f6b19c4c72606aa8)
Diffstat (limited to 'twin')
-rw-r--r-- | twin/useractions.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/twin/useractions.cpp b/twin/useractions.cpp index de78a5b64..2c6bc0a7a 100644 --- a/twin/useractions.cpp +++ b/twin/useractions.cpp @@ -647,10 +647,12 @@ bool Client::performMouseCommand( Options::MouseCommand command, TQPoint globalP return replay; } -// KDE4 remove me -void Workspace::showWindowMenuAt( unsigned long, int, int ) +void Workspace::showWindowMenuAt( unsigned long window, int x, int y ) { - slotWindowOperations(); + Client *client; + if ((client = findClient(WindowMatchPredicate((WId)window)))) + showWindowMenu( x, y, client ); + } void Workspace::slotActivateAttentionWindow() |