summaryrefslogtreecommitdiffstats
path: root/twin
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2023-12-03 11:43:07 +0200
committerMavridis Philippe <[email protected]>2023-12-21 19:55:29 +0200
commite67f30eb1f9c033d765fbae20eacc30d60ed4095 (patch)
tree143eb87fafff070efdcc350a394247c7857d7a59 /twin
parentfa7aa947c8fd0e83f79874e2f6c8813254f7a181 (diff)
downloadtdebase-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.cpp8
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()