all repos — fluxbox @ 1b652642fcd37c9d1a9885cbec10e892380eecab

custom fork of the fluxbox windowmanager

minor fix in RANDR init
fluxgen fluxgen
commit

1b652642fcd37c9d1a9885cbec10e892380eecab

parent

244c63f4b46469b4ce5879259dafef3d5062c6cd

1 files changed, 10 insertions(+), 4 deletions(-)

jump to
M src/fluxbox.ccsrc/fluxbox.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.140 2003/05/12 04:23:31 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.141 2003/05/12 04:28:05 fluxgen Exp $ #include "fluxbox.hh"

@@ -492,13 +492,19 @@ for (int i = 0; i < ScreenCount(display()); i++) {

char scrname[128], altscrname[128]; sprintf(scrname, "session.screen%d", i); sprintf(altscrname, "session.Screen%d", i); - BScreen *screen = new BScreen(m_screen_rm, scrname, altscrname, i, getNumberOfLayers()); + BScreen *screen = new BScreen(m_screen_rm, + scrname, altscrname, + i, getNumberOfLayers()); if (! screen->isScreenManaged()) { delete screen; continue; } - m_screen_list.push_back(screen); - +#ifdef HAVE_RANDR + XRRSelectInput(disp, screen->rootWindow().window(), + RRScreenChangeNotifyMask); +#endif // HAVE_RANDR + + m_screen_list.push_back(screen); m_atomhandler.push_back(&screen->getToolbarHandler()); // attach screen signals to this