f



Problem in getting Damage report over root window

Hi all,

I am attaching here my xorg log file, output of xinerama api's and co-
ordinates of Root window.I could get damage report for rootwindow area
of  1024 x 768.

Why i couldn't get damage report for area of (1024 - 2048) * 762?

(Second part of root window which is being virtualy enabled by dummy
driver to memic the second video card display).

What is the wrong i am doing here? Is there anything i am missing?

This is the way i created damage report over root window.

rootWin = RootWindow(g_Display,screen_num);
xdamage = XDamageCreate(display, rootWin, XDamageReportRawRectangles);
if(event.type == event_base + XDamageNotify)
{
				dev = (XDamageNotifyEvent *) &event;
				x = dev->area.x;
				y = dev->area.y;
				w = (dev->area.width);
				h = (dev->area.height);
				UpdateRect.left = x;
				UpdateRect.top = y;
				UpdateRect.right = x + w;
				UpdateRect.bottom = y + h;

}

Co-ordinates of root window,

left    0
top    0
width  2048
Height 768

Xorg log file
---------------------------------------------------------------------------------------------------------

(==) Log file: "/var/log/Xorg.0.log", Time: Thu Dec 27 16:03:08 2007
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Multihead layout"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Videocard0"
(**) |-->Screen "Screen1" (1)
(**) |   |-->Monitor "Monitor1"
(**) |   |-->Device "dummy"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(**) FontPath set to "unix/:7100"
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(==) ModulePath set to "/usr/X11R6/lib/modules"
(**) Option "Xinerama" "on"
(**) Xinerama: enabled
(**) Extension "Composite" is enabled
(**) Extension "RENDER" is enabled
(**) Extension "DAMAGE" is enabled
------------------------------------------------------------------------------------------------------------

This is output of my xinerama API's.

XineramaISActive: 1
Number of screens: 2

Screen No 0
X_origin:0
Y_origin:0
Width:1024
Height:768


Screen No 1
X_origin:1024
Y_origin:0
Width:1024
Height:768
------------------------------------------------------------------------------------------------------------
0
selva
12/27/2007 2:23:12 PM
comp.os.linux.x 2543 articles. 0 followers. Post Follow

0 Replies
305 Views

Similar Articles

[PageSpeed] 39

Reply: