aboutsummaryrefslogtreecommitdiffstats
path: root/unix/x0vncserver/RandrGlue.c
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly mark unused parametersPierre Ossman2023-01-041-0/+2
| | | | | This allows us to separate accidentally unused, from explicitly unused parameters, which allows us to turn on such checks in the compiler.
* Be consistent in including config.hPierre Ossman2021-12-301-0/+4
| | | | | | The generally recommended way is to include it from source files, not headers. We had a mix of both. Let's try to be consistent and follow the recommended way.
* Maintain static screen DPI on resizePierre Ossman2021-04-081-9/+9
| | | | | | Trying to dynamically track the DPI did not really work as we'd start accumulating errors and eventually the DPI would start to drift. Instead maintain a fixed, sensible DPI at all times.
* x0vncserver: Make sure rotation for new outputs is set to RR_Rotate_0Peter Åstrand (astrand)2018-05-081-0/+1
| | | | | The Xserver (at least Xorg 1.19) rejects RRSetCrtcConfig requests if rotation is zero.
* Add RandR support for x0vncserverPeter Åstrand (astrand)2018-04-091-0/+511
Change Xserver screen through libXrandr. For complex configurations, all outputs must have corresponding size modes. As a special case, if the client requests a single screen with an odd size (for example when adjusting the size of a non-fullscreen vncviewer), find a smaller suitable mode, and reduce the framebuffer size as well.