summaryrefslogtreecommitdiff
path: root/src/openbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/openbox.cc')
-rw-r--r--src/openbox.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openbox.cc b/src/openbox.cc
index caacb63b..727b403e 100644
--- a/src/openbox.cc
+++ b/src/openbox.cc
@@ -152,10 +152,12 @@ Openbox::Openbox(int argc, char **argv)
for (int i = 0, max = ScreenCount(**otk::display); i < max; ++i) {
Screen *screen;
+ // in single mode skip the screens we don't want to manage
if (_single && i != DefaultScreen(**otk::display)) {
_screens.push_back(0);
continue;
}
+ // try manage the screen
screen = new Screen(i);
if (screen->managed()) {
_screens.push_back(screen);