From 6c0d9ec42e6c08afe9235995f6b19c4c72606aa8 Mon Sep 17 00:00:00 2001
From: Mavridis Philippe <mavridisf@gmail.com>
Date: Sun, 3 Dec 2023 11:43:07 +0200
Subject: 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>
---
 twin/useractions.cpp | 8 +++++---
 1 file 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()
-- 
cgit v1.2.3

