mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
Don't allocate memory for log messages unless we're logging.
2008-07-12 Thomas Thurman <tthurman@gnome.org> * src/core/constraints.c (do_screen_and_xinerama_relative_constraints): Don't allocate memory for log messages unless we're logging. svn path=/trunk/; revision=3786
This commit is contained in:
parent
6bf62be4d0
commit
24e63a0d2d
@ -1,3 +1,8 @@
|
|||||||
|
2008-07-12 Thomas Thurman <tthurman@gnome.org>
|
||||||
|
|
||||||
|
* src/core/constraints.c (do_screen_and_xinerama_relative_constraints):
|
||||||
|
Don't allocate memory for log messages unless we're logging.
|
||||||
|
|
||||||
2008-07-12 Thomas Thurman <tthurman@gnome.org>
|
2008-07-12 Thomas Thurman <tthurman@gnome.org>
|
||||||
|
|
||||||
* src/core/group.c (meta_window_get_group): This function can now
|
* src/core/group.c (meta_window_get_group): This function can now
|
||||||
|
@ -1070,6 +1070,8 @@ do_screen_and_xinerama_relative_constraints (
|
|||||||
MetaRectangle how_far_it_can_be_smushed, min_size, max_size;
|
MetaRectangle how_far_it_can_be_smushed, min_size, max_size;
|
||||||
|
|
||||||
#ifdef WITH_VERBOSE_MODE
|
#ifdef WITH_VERBOSE_MODE
|
||||||
|
if (meta_is_verbose ())
|
||||||
|
{
|
||||||
/* First, log some debugging information */
|
/* First, log some debugging information */
|
||||||
char spanning_region[1 + 28 * g_list_length (region_spanning_rectangles)];
|
char spanning_region[1 + 28 * g_list_length (region_spanning_rectangles)];
|
||||||
|
|
||||||
@ -1077,6 +1079,7 @@ do_screen_and_xinerama_relative_constraints (
|
|||||||
"screen/xinerama constraint; region_spanning_rectangles: %s\n",
|
"screen/xinerama constraint; region_spanning_rectangles: %s\n",
|
||||||
meta_rectangle_region_to_string (region_spanning_rectangles, ", ",
|
meta_rectangle_region_to_string (region_spanning_rectangles, ", ",
|
||||||
spanning_region));
|
spanning_region));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Determine whether constraint applies; exit if it doesn't */
|
/* Determine whether constraint applies; exit if it doesn't */
|
||||||
|
Loading…
Reference in New Issue
Block a user