diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2023-12-03 11:43:07 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2023-12-21 19:53:03 +0200 |
commit | 6c0d9ec42e6c08afe9235995f6b19c4c72606aa8 (patch) | |
tree | 37cc055fc1a35e7c7f17b219d2aa4e00647145b2 /twin | |
parent | f093a1be1bd3768451b8bafcab263e8c172fab07 (diff) | |
download | tdebase-6c0d9ec42e6c08afe9235995f6b19c4c72606aa8.tar.gz tdebase-6c0d9ec42e6c08afe9235995f6b19c4c72606aa8.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 <mavridisf@gmail.com>
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() |