compositor-rdp: Add an option to disable client initiated resizes
authorHardening <rdp.effort@gmail.com>
Thu, 3 Apr 2014 00:54:00 +0000 (19:54 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 3 Apr 2014 04:27:49 +0000 (21:27 -0700)
commitf34cd2c6761977fac2f09d5bebde21ddde67da23
tree6143c8a0b88fed22fabf1d156b813e9dc5b97808
parent701f6362936eaf0f9a3c957108b5125218e2b04f
compositor-rdp: Add an option to disable client initiated resizes

This patch adds an option to the RDP compositor to disable
desktop resizes initiated by RDP peer. The current behaviour
is that if an incoming RDP peer suggests a resolution that is
not the current one, a mode_switch() is done and the desktop is
resized to that new resolution. This new flag allows to disable
that behaviour. If the flag is set, the new behaviour is that the
RDP peer will be instructed to resize to the size of the desktop.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compositor-rdp.c
src/compositor.c