summaryrefslogtreecommitdiffstats
path: root/src/xx.h
diff options
context:
space:
mode:
authorSimon Rettberg2020-02-16 10:12:22 +0100
committerSimon Rettberg2020-02-16 10:12:22 +0100
commit6289a836449b67d2a3d54d38332343ec8335aa67 (patch)
treed44323911a3577ec0c7916d8a0a6cbffb28995b7 /src/xx.h
parentMake sure screen at (0, 0) is marked primary (diff)
downloadbeamergui-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xx.h b/src/xx.h
index 53d3507..ce522d8 100644
--- a/src/xx.h
+++ b/src/xx.h
@@ -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() {