diff options
author | Manuel Schneider | 2013-11-21 15:38:19 +0100 |
---|---|---|
committer | Manuel Schneider | 2013-11-21 15:38:19 +0100 |
commit | 21aa80032f685b3ded10fe293ca083d2f46ae18c (patch) | |
tree | 5f43f8791996dc445cedf51e4bcbe913fa908b12 /src/displaymanager.cpp | |
parent | [Incomplete] Commit for EDID testsystem (diff) | |
download | beamergui-21aa80032f685b3ded10fe293ca083d2f46ae18c.tar.gz beamergui-21aa80032f685b3ded10fe293ca083d2f46ae18c.tar.xz beamergui-21aa80032f685b3ded10fe293ca083d2f46ae18c.zip |
alpha
Diffstat (limited to 'src/displaymanager.cpp')
-rw-r--r-- | src/displaymanager.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/displaymanager.cpp b/src/displaymanager.cpp deleted file mode 100644 index 61f35ea..0000000 --- a/src/displaymanager.cpp +++ /dev/null @@ -1,36 +0,0 @@ -#include "displaymanager.h" - - -DisplayManager * DisplayManager::Instance = NULL; - -DisplayManager::DisplayManager() -{ - dpy = NULL; - resources = NULL; - - - // Get initial data (to be freed) - dpy = XOpenDisplay(NULL); - resources = XRRGetScreenResourcesCurrent(dpy, DefaultRootWindow(dpy)); - - // Get outputs - for (int i = 0; i < resources->noutput; ++i) { - XRROutputInfo *info = XRRGetOutputInfo (dpy, resources, resources->outputs[i]); - if (info->connection == RR_Connected) - Outputs.push_back(Output(dpy, resources, resources->outputs[i])); - XRRFreeOutputInfo(info); - } -} - -DisplayManager::~DisplayManager() -{ - XCloseDisplay(dpy); - XRRFreeScreenResources(resources); -} - -DisplayManager *DisplayManager::Inst() -{ - if (Instance == 0) - Instance = new DisplayManager(); - return Instance; -} |