aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/MonitorIndicesParameter.cxx
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Fix typo in mirror monitor detectionPierre Ossman2021-12-231-4/+4
| | | | | | Bug introduced in fb561eb but still somehow passed manual testing. Resulted in some stray reads off the end of the stack, which were hopefully harmless.
* Fix corner case in monitor index calculationPierre Ossman2021-09-091-4/+6
| | | | | | Fix a bug in the comparison function that could result in the wrong index being assigned to a monitor. Change the logic to more directly map to the description.
* Handle mirrored monitors on X11Pierre Ossman2021-09-091-0/+20
| | | | | | | | macOS and Windows present mirrored monitors as a single virtual monitor, but X11 exposes this scenario as two distinct monitors with identical coordinates. This messes up our logic, and is likely confusing for the user. So instead we'll ignore any monitors that have identical coordinates to any already seen monitors.
* Clean up some error stringsPierre Ossman2021-09-081-2/+2
| | | | | Try to reuse and split things so that it makes things easier for the translators.
* Only log error when setting FullScreenSelectedMonitorsPierre Ossman2021-07-191-11/+16
| | | | | We don't want the log to spam every time this parameter is used so only complain from the parses when the value is changed.
* Don't reference specific variable in classPierre Ossman2021-07-191-3/+3
| | | | | This class is generic and should not reference a specific instance of it.
* Avoiding final period in log messagesPierre Ossman2021-07-191-6/+6
| | | | Try to be consistent with existing log messages.
* Clean up style in recent monitor codePierre Ossman2021-07-191-25/+25
| | | | | | | Fix some indentation issues and make sure everything* uses CamelCase. * MonitorArrangement is left as snake_case in order to pretend it is an independent FLTK widget class.
* Add fullscreen mode for selected monitorsHugo Lundin2021-07-161-0/+229
The user might not always want to use all monitors when in fullscreen mode, but instead only a few. This commit adds support for configuring selected monitors from command line, in the config file and graphically in the options menu. Because it might be hard to guarantee the consistency of monitor identifiers coming from third-parties (for example FLTK), it has been decided to use our own numerical identifier. This identifier is based on the monitor's positions. The mapping between this identifier and the indices used by FLTK is done by MonitorIndicesParameter.