Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37842339
en ru br
Репозитории ALT
4.0: 7.3.0-alt1
3.0: 6.8.2-alt18
+updates:6.8.2-alt24
www.altlinux.org/Changes

Группа :: Система/X11
Пакет: xorg-x11

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: xorg-x11-6.8.2-xrandr.patch
Скачать


--- xc.orig/lib/Xrandr/Xrandr.c 2004-04-23 22:43:47 +0400
+++ xc/lib/Xrandr/Xrandr.c      2006-04-27 15:10:05 +0400
@@ -709,10 +709,17 @@
	scevent = (XRRScreenChangeNotifyEvent *) event;
 	snum = XRRRootToScreen(dpy, 
 			       ((XRRScreenChangeNotifyEvent *) event)->root);
-	dpy->screens[snum].width   = scevent->width;
-	dpy->screens[snum].height  = scevent->height;
-	dpy->screens[snum].mwidth  = scevent->mwidth;
-	dpy->screens[snum].mheight = scevent->mheight;
+	if (scevent->rotation & (RR_Rotate_90 | RR_Rotate_270)) {
+	    dpy->screens[snum].width   = scevent->height;
+	    dpy->screens[snum].height  = scevent->width;
+	    dpy->screens[snum].mwidth  = scevent->mheight;
+	    dpy->screens[snum].mheight = scevent->mwidth;
+	} else {
+	    dpy->screens[snum].width   = scevent->width;
+	    dpy->screens[snum].height  = scevent->height;
+	    dpy->screens[snum].mwidth  = scevent->mwidth;
+	    dpy->screens[snum].mheight = scevent->mheight;
+	}
 	XRenderSetSubpixelOrder (dpy, snum, scevent->subpixel_order);
 	break;
     default:
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin