Add possible capabilities CURSOR_PLANE and ARBITRARY_MODE
The CURSOR_PLANE capability indicates that the backend has a concept of a
cursor plane and can handle a cursor without compositing. This is currently
only advertised by the DRM backend.
The ARBITRARY_MODE flag specifies that the backend is capable of switching to
virtually any resolution. This is currently only advertised in the RDP
backend. While it's a bit buggy right now, it should be capable of this.
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c
index 909e225..f4c80a0 100644
--- a/src/compositor-rdp.c
+++ b/src/compositor-rdp.c
@@ -1005,7 +1005,9 @@
if (rdp_compositor_create_output(c, config->width, config->height) < 0)
goto err_compositor;
- if (!config->env_socket) {
+ c->base.capabilities |= WESTON_CAP_ARBITRARY_MODES;
+
+ if(!config->env_socket) {
c->listener = freerdp_listener_new();
c->listener->PeerAccepted = rdp_incoming_peer;
c->listener->param4 = c;