mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
Fix some uninitialized variable errors reported by valgrind (see #153338)
2004-09-22 Elijah Newren <newren@math.utah.edu> Fix some uninitialized variable errors reported by valgrind (see #153338) * src/display.c (meta_display_open): initialize display->grab_resize_timeout_id, and display->grab_have_keyboard * src/ui.c (meta_ui_create_frame_window): initialize attrs.width and attrs.height
This commit is contained in:
parent
aa63e0884d
commit
3b9ec3ce50
11
ChangeLog
11
ChangeLog
@ -1,3 +1,14 @@
|
|||||||
|
2004-09-22 Elijah Newren <newren@math.utah.edu>
|
||||||
|
|
||||||
|
Fix some uninitialized variable errors reported by valgrind (see
|
||||||
|
#153338)
|
||||||
|
|
||||||
|
* src/display.c (meta_display_open): initialize
|
||||||
|
display->grab_resize_timeout_id, and display->grab_have_keyboard
|
||||||
|
|
||||||
|
* src/ui.c (meta_ui_create_frame_window): initialize attrs.width
|
||||||
|
and attrs.height
|
||||||
|
|
||||||
2004-09-17 Elijah Newren <newren@math.utah.edu>
|
2004-09-17 Elijah Newren <newren@math.utah.edu>
|
||||||
|
|
||||||
* src/workspace.c (meta_workspace_focus_mru_window): Don't focus a
|
* src/workspace.c (meta_workspace_focus_mru_window): Don't focus a
|
||||||
|
@ -502,6 +502,9 @@ meta_display_open (const char *name)
|
|||||||
display->current_time = CurrentTime;
|
display->current_time = CurrentTime;
|
||||||
display->sentinel_counter = 0;
|
display->sentinel_counter = 0;
|
||||||
|
|
||||||
|
display->grab_resize_timeout_id = 0;
|
||||||
|
display->grab_have_keyboard = FALSE;
|
||||||
|
|
||||||
display->grab_op = META_GRAB_OP_NONE;
|
display->grab_op = META_GRAB_OP_NONE;
|
||||||
display->grab_wireframe_active = FALSE;
|
display->grab_wireframe_active = FALSE;
|
||||||
display->grab_window = NULL;
|
display->grab_window = NULL;
|
||||||
|
3
src/ui.c
3
src/ui.c
@ -219,6 +219,9 @@ meta_ui_create_frame_window (MetaUI *ui,
|
|||||||
attrs.wmclass_class = NULL;
|
attrs.wmclass_class = NULL;
|
||||||
attrs.override_redirect = FALSE;
|
attrs.override_redirect = FALSE;
|
||||||
|
|
||||||
|
attrs.width = width;
|
||||||
|
attrs.height = height;
|
||||||
|
|
||||||
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
|
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
|
||||||
|
|
||||||
window =
|
window =
|
||||||
|
Loading…
Reference in New Issue
Block a user