now it opens on all possible screens
This commit is contained in:
parent
6d403febc6
commit
aa34774d4c
1 changed files with 5 additions and 3 deletions
|
@ -68,9 +68,11 @@ epist::epist(char **argv, char *dpy_name, char *rc_file)
|
||||||
|
|
||||||
_xatom = new XAtom(getXDisplay());
|
_xatom = new XAtom(getXDisplay());
|
||||||
|
|
||||||
screen *s = new screen(this, DefaultScreen(getXDisplay()));
|
for (unsigned int i = 0; i < getNumberOfScreens(); ++i) {
|
||||||
if (s->managed())
|
screen *s = new screen(this, i);
|
||||||
_screens.push_back(s);
|
if (s->managed())
|
||||||
|
_screens.push_back(s);
|
||||||
|
}
|
||||||
if (_screens.empty()) {
|
if (_screens.empty()) {
|
||||||
cout << "No compatible window manager found on any screens. Aborting.\n";
|
cout << "No compatible window manager found on any screens. Aborting.\n";
|
||||||
::exit(1);
|
::exit(1);
|
||||||
|
|
Loading…
Reference in a new issue