Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/engines/x11


Modified Files:
        ewl_engine_x11.c 


Log Message:
Better configure event handling in the X11 engine.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/engines/x11/ewl_engine_x11.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- ewl_engine_x11.c    29 Sep 2006 05:51:41 -0000      1.16
+++ ewl_engine_x11.c    6 Oct 2006 18:19:22 -0000       1.17
@@ -723,6 +723,7 @@
        Ecore_X_Event_Window_Configure *ev;
        Ewl_Window *window;
        Ewl_Embed *embed;
+       int config = 0;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
 
@@ -735,11 +736,15 @@
        /*
         * Save coords and queue a configure event if the window is moved.
         */
-       if ((ev->from_wm) && (ev->x != embed->x))
+       if ((ev->from_wm) && (ev->x != embed->x)) {
                embed->x = ev->x;
+               config = 1;
+       }
 
-       if ((ev->from_wm) && (ev->y != embed->y))
+       if ((ev->from_wm) && (ev->y != embed->y)) {
                embed->y = ev->y;
+               config = 1;
+       }
 
        window = ewl_window_window_find((void *)ev->win);
        /*
@@ -748,7 +753,8 @@
        if (!window)
                DRETURN_INT(TRUE, DLEVEL_STABLE);
 
-       ewl_widget_configure(EWL_WIDGET(window));
+       if (config)
+               ewl_widget_configure(EWL_WIDGET(window));
 
        /*
         * Configure events really only need to occur on resize.
@@ -763,7 +769,7 @@
                 * add this back in to limit the # of window resizes occuring. 
                 * (As long as it doesn't break initial size.)
                 */
-               /* if (ev->from_wm) window->flags |= EWL_WINDOW_USER_CONFIGURE; 
*/
+               // if (ev->from_wm) window->flags |= EWL_WINDOW_USER_CONFIGURE;
                ewl_object_geometry_request(EWL_OBJECT(window), 0, 0, ev->w,
                                                                        ev->h);
        }



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to