diff options
author | Simon Rettberg | 2020-02-16 10:12:22 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-02-16 10:12:22 +0100 |
commit | 6289a836449b67d2a3d54d38332343ec8335aa67 (patch) | |
tree | d44323911a3577ec0c7916d8a0a6cbffb28995b7 /src/xx.h | |
parent | Make sure screen at (0, 0) is marked primary (diff) | |
download | beamergui-6289a836449b67d2a3d54d38332343ec8335aa67.tar.gz beamergui-6289a836449b67d2a3d54d38332343ec8335aa67.tar.xz beamergui-6289a836449b67d2a3d54d38332343ec8335aa67.zip |
Use xrandr to actually set resolutions
Get rid of out own crap to try and figure out how to configure
the outputs, crtcs, screens, whatever. xrandr probably is
smarter here, so just build a command line and go.
Diffstat (limited to 'src/xx.h')
-rw-r--r-- | src/xx.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -68,7 +68,7 @@ public: void initModes(); ScreenMode getCurrentMode(); bool hasScreenWithoutEdid(); - ConfigBackup setDefaultMode(bool dryRun, ScreenMode &mode); + ConfigBackup setDefaultMode(ScreenMode &mode); bool createMode(unsigned int resX, unsigned int resY, float refresh, QString name); ConfigBackup setCenteredClone(); ConfigBackup setClone(const QSize &resolution); @@ -78,6 +78,7 @@ public: int queryCurrentOutputCount() const; QMap<QString, ScreenInfo> getScreenPositions() const; const ResolutionVector &getVirtualResolutions() const; + bool runXrandr(QStringList &cmd); // Singleton inline static ScreenSetup* inst() { |