On 06.03.2013 17:19, Timo Aaltonen wrote:
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=59795
> 
> Signed-off-by: Ritesh Khadgaray <[email protected]>
> Reviewed-by: Peter Hutterer <[email protected]>
> ---
>  src/Xrandr.c |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/Xrandr.c b/src/Xrandr.c
> index b1e97ec..9a56636 100644
> --- a/src/Xrandr.c
> +++ b/src/Xrandr.c
> @@ -483,6 +483,10 @@ int XRRUpdateConfiguration(XEvent *event)
>         scevent = (XRRScreenChangeNotifyEvent *) event;
>         snum = XRRRootToScreen(dpy,
>                                ((XRRScreenChangeNotifyEvent *) event)->root);
> +     /* check for return value, fails on nx */
> +     if (snum == -1 ) {
> +             return 0;
> +     }
>         if (scevent->rotation & (RR_Rotate_90 | RR_Rotate_270)) {
>                 dpy->screens[snum].width   = scevent->height;
>                 dpy->screens[snum].height  = scevent->width;
> 

should I just push this by now?


-- 
t
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to