On Fri, 25 Jul 2008, Peter Wehrfritz wrote:
>> stop confusing e17 >> 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. raster: should some tests on the max and min values be done in ecore_x_icccm_size_pos_hints_set() or in e17 about the possibility to have max < min for height and width (like in the patch) ? Vincent ------------------------------------------------------------------------- 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