fix(popouts): the context menu never opened outside the main window

Right-clicking a name or an item inside a pop-out did nothing at all.

One payload handler is shared by the main window, every pop-out and the
input preview, and it holds a single popup state. The main window is
registered first, so it draws first, finds no open popup in its own scope,
reads that as "closed" and clears the state -- before the window that
actually opened the popup gets its turn.

The popup now belongs to the surface that opened it. The others leave its
state alone instead of dropping it. The rule itself sits in its own helper
because the handler pulls in Dalamud and cannot be loaded from a test.
This commit is contained in:
2026-08-20 07:54:32 +02:00
parent d5c7db9f43
commit a3379818eb
4 changed files with 28 additions and 1 deletions
+1
View File
@@ -175,6 +175,7 @@ internal sealed class InputPreview : Window
_handlerLender.ResetCounter();
var handler = _handlerLender.Borrow();
handler.ActiveSurface = this;
_chunkRenderer.DrawChunks(
_previewMessage!.Content,
wrap: true,