aboutsummaryrefslogtreecommitdiffstats
path: root/unix/common
Commit message (Collapse)AuthorAgeFilesLines
* Simplify RandR output name handlingPierre Ossman2024-06-241-36/+26
| | | | | Store the name in a std::string to make things less complex as we don't need to be as careful about making sure the data is free():d.
* Prefer target_include_directories()Pierre Ossman2023-03-311-3/+3
| | | | | It is more specific, and it properly sets up propagation when include directories also need to be used further down a dependency chain.
* Use stdint typesPierre Ossman2023-02-012-2/+2
| | | | | Avoid having our own custom stuff and instead use the modern, standard types, for familiarity.
* Improve logging around screen resizingPierre Ossman2022-01-251-1/+4
| | | | | | Avoid duplication, and add logging for some more error conditions so it's possible to see in the logs why a resize has failed or produced unexpected results.
* Be consistent in including config.hPierre Ossman2021-12-301-4/+0
| | | | | | 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.
* 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.