aboutsummaryrefslogtreecommitdiffstats
path: root/unix/common
Commit message (Collapse)AuthorAgeFilesLines
* Add a tryScreenLayout functionPeter Åstrand (astrand)2018-04-093-37/+141
| | | | This can be used to test if a layout if possible.
* Add debug log messagesPeter Åstrand (astrand)2018-04-091-12/+27
|
* Avoid disabling outputs which are already disabledPeter Åstrand (astrand)2018-04-091-0/+4
| | | | | Better to avoid making unnecessary calls, but mainly we want to avoid logging false errors.
* Select the correct output for new screensPeter Åstrand (astrand)2018-04-093-27/+89
| | | | | | | | | | For example, if we have earlier disabled an output because it was too large for the framebuffer, we should prefer this output when allocating new outputs. Move the code that turn off unused outputs to the end. Also, add support for checking the output connection state.
* Disable outputs which are larger than the target framebuffer sizePeter Åstrand (astrand)2018-04-091-1/+21
| | | | | Apparently this is not necessary when using the internal API, but a must with libXrandr.
* Make vncRandRGetOutputDimensions tolerant for disabled outputsPeter Åstrand (astrand)2018-04-092-4/+4
| | | | Return error if no CRTC.
* Remove "screen" argument from Randr glue functionsPeter Åstrand (astrand)2018-04-093-48/+45
| | | | Screen is a Xvnc thing and not relevant for x0vncserver etc.
* Corrected RandR wrapper return codesPeter Åstrand (astrand)2018-04-091-1/+1
| | | | | | | | | | | | In RandR land, there's a lot of return code confusion. Our wrappers are using the same return codes as RRCrtcSet, RRScreenSizeSet: 1/TRUE for success. Fixes: * vncRandRCreateOutputs did not follow this convention * A lot of code returned -1 upon failure * vncRandRDisableOutput returned 0 for already disabled outputs
* Move computeScreenLayout/setScreenLayout to unixcommon libPeter Åstrand (astrand)2018-04-094-0/+367
These two code blocks are not specific to Xvnc/vnc.so, but useful for x0vncserver as well. RandrGlue.h defines the interface on which unixcommon depends on.