Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_config_display.c 


Log Message:


bug in xrandr - workaround.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_display.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- e_int_config_display.c      2 Jul 2006 17:25:18 -0000       1.16
+++ e_int_config_display.c      2 Jul 2006 17:47:44 -0000       1.17
@@ -198,7 +198,7 @@
 _fill_data(E_Config_Dialog_Data *cfdata) 
 {
    E_Manager *man;
-   Ecore_X_Randr_Rotation rots;
+   int rots;
    
    man = e_manager_current_get();
    cfdata->orig_size = ecore_x_randr_current_screen_size_get(man->root);   
@@ -245,7 +245,7 @@
 _basic_apply_data(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) 
 {
    char *sel_res, *sel_rate;
-   int w, h, r, i, n;
+   int w, h, r, i, n, k, rr;
    Ecore_X_Screen_Size *sizes;
    Ecore_X_Screen_Size size;
    Ecore_X_Screen_Refresh_Rate *rates;   
@@ -275,7 +275,6 @@
                 (sizes[i].height == h))
               {
                  size = sizes[i];
-                 int k, rr;
                  rates = ecore_x_randr_screen_refresh_rates_get(man->root, i, 
&rr);
                  for (k = 0; k < rr; k++) 
                    {
@@ -297,13 +296,15 @@
        cfdata->orig_size = size;
        cfdata->orig_rate = rate;
      }
-   
+
    if ((cfdata->can_rotate) || (cfdata->can_flip))
      {
-       Ecore_X_Randr_Rotation rot;
+       int rot;
        
        rot = ecore_x_randr_screen_rotation_get(man->root);
-       if (rot != (cfdata->rotation | cfdata->flip))
+// FIXME: a bug in x where it returns that the current rotation is still
+// normal (none) when it isn't. so just blindly ask for a new rot anyway.
+//     if (rot != (cfdata->rotation | cfdata->flip))
          ecore_x_randr_screen_rotation_set(man->root,
                                            cfdata->rotation | cfdata->flip);
        e_config->display_res_rotation = cfdata->rotation | cfdata->flip;



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to