Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_window.c ewl_events.c ewl_enums.h
Log Message:
Fix up some of the spastic window resizing issues. If anyone still notices a
problem, please report it.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_window.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -3 -r1.70 -r1.71
--- ewl_window.c 5 Feb 2004 17:35:23 -0000 1.70
+++ ewl_window.c 14 Feb 2004 07:19:58 -0000 1.71
@@ -522,13 +522,21 @@
* Now give the windows the appropriate size and adjust the evas as
* well.
*/
- ecore_x_window_resize(win->window, width, height);
- ecore_x_window_resize(EWL_EMBED(win)->evas_window, width, height);
+ if (win->flags & EWL_WINDOW_USER_CONFIGURE)
+ win->flags &= ~EWL_WINDOW_USER_CONFIGURE;
+ else {
+ ecore_x_window_resize(win->window, width, height);
+
+ }
+
+ if (EWL_EMBED(win)->evas_window != win->window)
+ ecore_x_window_resize(EWL_EMBED(win)->evas_window, width,
+ height);
evas_output_size_set(EWL_EMBED(win)->evas, width, height);
evas_output_viewport_set(EWL_EMBED(win)->evas,
- ewl_object_get_current_x(EWL_OBJECT(w)),
- ewl_object_get_current_y(EWL_OBJECT(w)),
- width, height);
+ ewl_object_get_current_x(EWL_OBJECT(w)),
+ ewl_object_get_current_y(EWL_OBJECT(w)),
+ width, height);
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_events.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -3 -r1.49 -r1.50
--- ewl_events.c 13 Feb 2004 06:25:20 -0000 1.49
+++ ewl_events.c 14 Feb 2004 07:19:58 -0000 1.50
@@ -117,6 +117,7 @@
* Configure events really only need to occur on resize.
*/
if (CURRENT_W(window) != ev->w || CURRENT_H(window) != ev->h) {
+ window->flags |= EWL_WINDOW_USER_CONFIGURE;
ewl_object_request_geometry(EWL_OBJECT(window), 0, 0, ev->w,
ev->h);
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_enums.h,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -3 -r1.44 -r1.45
--- ewl_enums.h 13 Feb 2004 06:25:20 -0000 1.44
+++ ewl_enums.h 14 Feb 2004 07:19:58 -0000 1.45
@@ -173,8 +173,8 @@
enum Ewl_Window_Flags
{
- EWL_WINDOW_AUTO_SIZE = 1,
- EWL_WINDOW_BORDERLESS = 2
+ EWL_WINDOW_BORDERLESS = 1,
+ EWL_WINDOW_USER_CONFIGURE = 2
};
typedef enum Ewl_Tree_Node_Flags Ewl_Tree_Node_Flags;
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs