princeamd pushed a commit to branch ecore-1.7.
commit aebc143280b827e7da4d4dbea14380fd293f5f74
Author: Boris Faure <[email protected]>
Date: Tue Jan 29 19:55:42 2013 +0000
Backport: d9e05b1 :: ecore_x: randr: don't crash when launching e without
second screen
SVN revision: 83449
Signed-off-by: Deon Thomas <[email protected]>
---
src/lib/ecore_x/xlib/ecore_x_randr.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/lib/ecore_x/xlib/ecore_x_randr.c
b/src/lib/ecore_x/xlib/ecore_x_randr.c
index cf2e085..bde701d 100644
--- a/src/lib/ecore_x/xlib/ecore_x_randr.c
+++ b/src/lib/ecore_x/xlib/ecore_x_randr.c
@@ -1558,7 +1558,10 @@ ecore_x_randr_crtc_settings_set(Ecore_X_Window root,
Ecore_X_Randr_Crtc crtc, Ec
if ((info = XRRGetCrtcInfo(_ecore_x_disp, res, crtc)))
{
if ((mode == 0) || (noutputs == 0))
- outputs = NULL;
+ {
+ outputs = NULL;
+ noutputs = 0;
+ }
else if (noutputs == -1)
{
outputs = (Ecore_X_Randr_Output *)info->outputs;
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev