minor fix in RANDR init
fluxgen fluxgen
1 files changed,
10 insertions(+),
4 deletions(-)
jump to
M
src/fluxbox.cc
→
src/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