[Xcb-commit] xcbrandr.c

Vincent Torri doursse at kemper.freedesktop.org
Wed Feb 21 11:44:29 PST 2007


 xcbrandr.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

New commits:
diff-tree ef1877575d79fab3ebb74c2de81773ccdc4fe549 (from 1a64624e3860d4b9436449a386a09f60da0eac58)
Author: TORRI Vincent <torri at alf94-3-82-66-248-160.fbx.proxad.net>
Date:   Wed Feb 21 20:44:15 2007 +0100

    make randr test use the new API

diff --git a/xcbrandr.c b/xcbrandr.c
index ecf00d7..9a341e9 100644
--- a/xcbrandr.c
+++ b/xcbrandr.c
@@ -373,7 +373,7 @@ main (int argc, char **argv)
   values[0] = 1;
   xcb_configure_window(c, root->root, mask, values);
 
-  if (setit) xcb_randr_select_input (c, root->root, XCB_RANDR_NOTIFY_MASK_SCREEN_CHANGE);
+  if (setit) xcb_randr_select_input (c, root->root, XCB_RANDR_SM_SCREEN_CHANGE_NOTIFY);
 
   if (setit) {
     xcb_randr_set_screen_config_cookie_t sscc;
@@ -422,7 +422,7 @@ main (int argc, char **argv)
 	       sce->timestamp, sce->config_timestamp);
 	  printf(" Rotation = %x\n", sce->rotation);
 	  printf(" %d X %d pixels, %d X %d mm\n",
-		 sce->width, sce->height, sce->mmWidth, sce->mmHeight);
+		 sce->width, sce->height, sce->mwidth, sce->mheight);
 	  
 	  printf("Display width   %d, height   %d\n",
 		 root->width_in_pixels, root->height_in_pixels);


More information about the xcb-commit mailing list