[Xorg-commit] xc/lib/Xinerama Xinerama.c,1.1.4.2,1.1.4.3

Kaleb Keithley xorg-commit at pdx.freedesktop.org
Wed May 9 17:30:30 EEST 2007


Committed by: kaleb

Update of /cvs/xorg/xc/lib/Xinerama
In directory pdx:/home/kaleb/xorg/xc.XORG-CURRENT/lib/Xinerama

Modified Files:
      Tag: XORG-CURRENT
	Xinerama.c 
Log Message:
{Set,Get}CenterHint are not in the final spec


Index: Xinerama.c
===================================================================
RCS file: /cvs/xorg/xc/lib/Xinerama/Xinerama.c,v
retrieving revision 1.1.4.2
retrieving revision 1.1.4.3
diff -u -d -r1.1.4.2 -r1.1.4.3
--- Xinerama.c	29 Dec 2003 13:38:58 -0000	1.1.4.2
+++ Xinerama.c	4 Feb 2004 19:42:25 -0000	1.1.4.3
@@ -239,67 +239,3 @@
 }
 #endif
 
-#define HINT_NAME "XINERAMA_CENTER_HINT"
-#define HINT_TYPE "INTEGER"
-
-Status XineramaGetCenterHint (
-    Display *dpy,
-    Window root,
-    int *x,
-    int *y
-)
-{
-    XExtDisplayInfo *info = find_display (dpy);
-    Atom atom, type, actual_type;
-    unsigned long nitems, bytes_after;
-    int actual_format, status;
-    short *prop;
-
-    XineramaCheckExtension (dpy, info, 0);
-
-    type = XInternAtom(dpy, HINT_TYPE, False);
-    atom = XInternAtom(dpy, HINT_NAME, True);
-
-    if(atom == None) return 0;  /* no such atom */
-
-    if( (status = XGetWindowProperty(dpy, root, atom, 0, 1, False, type, 
-				     &actual_type, &actual_format, &nitems, 
-				     &bytes_after, (unsigned char**)(&prop))) 
-	!= Success)
-	return 0;
-
-    if(actual_type == None) return 0;  /* no such property */
-
-    *x = prop[0];
-    *y = prop[1];
-
-    if (prop) XFree(prop);
-
-    return 1;
-}
-
-
-Status XineramaSetCenterHint (
-    Display *dpy,
-    Window root,
-    int x,
-    int y
-)
-{
-    XExtDisplayInfo *info = find_display (dpy);
-    Atom atom, type;
-    short data[2];
-
-    XineramaCheckExtension (dpy, info, 0);
-
-    atom = XInternAtom(dpy, HINT_NAME, False);
-    type = XInternAtom(dpy, HINT_TYPE, False);
-
-    data[0] = x;
-    data[1] = y;
-
-    return XChangeProperty(dpy, root, atom, type, 16, PropModeReplace, 
-                           (unsigned char*)data, 2);
-}
-
-





More information about the xorg-commit mailing list