Enlightenment CVS schrieb: > Enlightenment CVS committal > > Author : pfritz > Project : e17 > Module : libs/ewl > > Dir : e17/libs/ewl/src/engines/x11 > > > Modified Files: > ewl_engine_x11.c > > > Log Message: > stop confusing e17 > > =================================================================== > RCS file: /cvs/e/e17/libs/ewl/src/engines/x11/ewl_engine_x11.c,v > retrieving revision 1.61 > retrieving revision 1.62 > diff -u -3 -r1.61 -r1.62 > --- ewl_engine_x11.c 14 Jul 2008 17:54:29 -0000 1.61 > +++ ewl_engine_x11.c 25 Jul 2008 08:59:23 -0000 1.62 > @@ -470,20 +470,29 @@ > static void > ee_window_min_max_size_set(Ewl_Window *win) > { > + int min_w, min_h, max_w, max_h; > DENTER_FUNCTION(DLEVEL_STABLE); > DCHECK_PARAM_PTR(win); > DCHECK_TYPE(win, EWL_WINDOW_TYPE); > > + min_w = ewl_object_minimum_w_get(EWL_OBJECT(win)); > + min_h = ewl_object_minimum_h_get(EWL_OBJECT(win)); > + max_w = ewl_object_maximum_w_get(EWL_OBJECT(win)); > + max_h = ewl_object_maximum_h_get(EWL_OBJECT(win)); > + > + if (min_w > max_w) > + min_w = max_w; > + if (min_h > max_h) > + min_h = max_h; > + > ecore_x_icccm_size_pos_hints_set(INTPTR_TO_INT(win->window), > 0, ECORE_X_GRAVITY_NW, > - > ewl_object_minimum_w_get(EWL_OBJECT(win)), > - > ewl_object_minimum_h_get(EWL_OBJECT(win)), > - > ewl_object_maximum_w_get(EWL_OBJECT(win)), > - > ewl_object_maximum_h_get(EWL_OBJECT(win)), > + min_w, min_h, > + max_w, max_h, > 0, 0, /* base */ > 0, 0, /* step */ > 0, 0); /* aspect */ > - > + > DLEAVE_FUNCTION(DLEVEL_STABLE); > } > >
E17 is a bit confused if you set a minimum size to a window that is greater then the maximum size. I don't know which value should win, we chose the maximum value. Vincent said that metacity uses the minimum value. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel