RFC ui/gtk: Introduce new param - Connectors
Get series with b4
b4 am [email protected]Versions newest first
- v2 RFC Latest2 patches 10 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ui/gtk: Factor out tab window creation into a separateui/ | +36 | 0 replies | |
| 2/2 | ui/gtk: Add a new parameter to assign connectors/monitorsinclude/ qapi/ qemu-options.hx +1 more | +279 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [RFC PATCH v2 0/2] ui/gtk: Introduce new param - Connectors
From: Dongwon Kim <[email protected]>
This patch series is a replacement of
https://mail.gnu.org/archive/html/qemu-devel/2023-06/msg03989.html
There is a need, expressed by several users, to assign ownership of one or more physical monitors/connectors to individual guests. This creates a clear notion of which guest's contents are being displayed on any given monitor. Given that there is always a display server/compositor running on the host, monitor ownership can never truly be transferred to guests. However, the closest approximation is to request the host compositor to fullscreen the guest's windows on individual monitors. This allows for various configurations, such as displaying four different guests' windows on four different monitors, a single guest's windows (or virtual consoles) on four monitors, or any similar combination.
This patch series attempts to accomplish this by introducing a new parameter named "connector" to assign monitors to the GFX VCs associated with a guest. If the assigned monitor is not connected, the guest's window will not be displayed, similar to how a host compositor behaves when connectors are not connected. Once the monitor is hot-plugged, the guest's window(s) will be positioned on the assigned monitor.
Usage example:
-display gtk,gl=on,connectors=DP-1:eDP-1:HDMI-2...
In this example, the first graphics virtual console will be placed on the DP-1 display, the second on eDP-1, and the third on HDMI-2.
v2: Connectors is now in a string format that includes all connector names
separated with a colon (previously it was a linked list)
Code refactoring
Vivek Kasireddy (2):
ui/gtk: Factor out tab window creation into a separate ui/gtk: Add a new parameter to assign connectors/monitors
qapi/ui.json | 25 +++- include/ui/gtk.h | 1 + ui/gtk.c | 301 +++++++++++++++++++++++++++++++++++++++++++---- qemu-options.hx | 4 + 4 files changed, 308 insertions(+), 23 deletions(-)
Signature · 1 line
2.34.1