aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-05-12 04:28:05 (GMT)
committerfluxgen <fluxgen>2003-05-12 04:28:05 (GMT)
commit1b652642fcd37c9d1a9885cbec10e892380eecab (patch)
treee934fd1ddf7b8aa068388b97d21bbb4cee421469
parent244c63f4b46469b4ce5879259dafef3d5062c6cd (diff)
downloadfluxbox-1b652642fcd37c9d1a9885cbec10e892380eecab.zip
fluxbox-1b652642fcd37c9d1a9885cbec10e892380eecab.tar.bz2
minor fix in RANDR init
-rw-r--r--src/fluxbox.cc14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 48573a5..780e8ab 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: fluxbox.cc,v 1.140 2003/05/12 04:23:31 fluxgen Exp $ 25// $Id: fluxbox.cc,v 1.141 2003/05/12 04:28:05 fluxgen Exp $
26 26
27#include "fluxbox.hh" 27#include "fluxbox.hh"
28 28
@@ -492,13 +492,19 @@ Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name, const char *rcfile
492 char scrname[128], altscrname[128]; 492 char scrname[128], altscrname[128];
493 sprintf(scrname, "session.screen%d", i); 493 sprintf(scrname, "session.screen%d", i);
494 sprintf(altscrname, "session.Screen%d", i); 494 sprintf(altscrname, "session.Screen%d", i);
495 BScreen *screen = new BScreen(m_screen_rm, scrname, altscrname, i, getNumberOfLayers()); 495 BScreen *screen = new BScreen(m_screen_rm,
496 scrname, altscrname,
497 i, getNumberOfLayers());
496 if (! screen->isScreenManaged()) { 498 if (! screen->isScreenManaged()) {
497 delete screen; 499 delete screen;
498 continue; 500 continue;
499 } 501 }
500 m_screen_list.push_back(screen); 502#ifdef HAVE_RANDR
501 503 XRRSelectInput(disp, screen->rootWindow().window(),
504 RRScreenChangeNotifyMask);
505#endif // HAVE_RANDR
506
507 m_screen_list.push_back(screen);
502 m_atomhandler.push_back(&screen->getToolbarHandler()); 508 m_atomhandler.push_back(&screen->getToolbarHandler());
503 509
504 // attach screen signals to this 510 // attach screen signals to this