From 7891106ca38096a5c738394cc6252b503de1ea75 Mon Sep 17 00:00:00 2001 From: rathnor Date: Thu, 22 May 2003 01:17:15 +0000 Subject: initialisation problem with xinerama enabled but not active - caused crash --- src/Screen.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Screen.cc b/src/Screen.cc index f67b63a..753acbe 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.175 2003/05/20 11:03:10 rathnor Exp $ +// $Id: Screen.cc,v 1.176 2003/05/22 01:17:15 rathnor Exp $ #include "Screen.hh" @@ -2549,6 +2549,7 @@ void BScreen::initXinerama() { if (!XineramaIsActive(display)) { m_xinerama_avail = false; m_xinerama_headinfo = 0; + m_xinerama_num_heads = 0; return; } m_xinerama_avail = true; -- cgit v0.11.2