clipboard: restructure how we capture OSC 52
Previously, we'd create a clipboard handler associated with a GUI window and take care to pass that down to the underlying Pane whenever we spawned a new pane. For the mux server, instead of being associated with a GUI window, the clipboard was a special RemoteClipboard that would send a PDU through to the client that spawned the window. The bug here was that when that client went away, the clipboard for that window was broken. If the mux server was the built-in mux in a gui process this could leave a tab without working OSC 52 clipboard support. This commit restructures things so that the Mux is responsible for assigning a clipboard handler that rephrases the clipboard event as a MuxNotification. Both the GUI frontend and the mux server dispatcher already listen for mux notifications and translate those events into appropriate operations on the system clipboard or Pdus to send to the client(s). refs: #1790
This commit is contained in:
1 parent
34090580a0
commit
210999b915
10 files changed
+106
-169
No files matched your search
@@ -40,6 +40,7 @@ As features stabilize some brief notes about them will accumulate here.
|
||||
* `CloseCurrentPane{confirm=false}` would leave behind a phantom tab/pane when used with the multiplexer. [#1277](https://github.com/wez/wezterm/issues/1277)
|
||||
* `CloseCurrentPane{confirm=true}` artifacts when used with the multiplexer. [#783](https://github.com/wez/wezterm/issues/783)
|
||||
* Scrollbar thumb could jump around/move out of bounds. Thanks to [@davidrios](https://github.com/davidrios)! [#1525](https://github.com/wez/wezterm/issues/1525)
|
||||
* OSC 52 could stop working for tabs/panes spawned into the GUI via the CLI. [#1790](https://github.com/wez/wezterm/issues/1790)
|
||||
|
||||
### 20220319-142410-0fcdea07
|
||||
|
||||
|
||||
Reference in new issue
Block a user