summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElijah Newren <newren@math.utah.edu>2004-09-22 18:57:36 +0000
committerElijah Newren <newren@src.gnome.org>2004-09-22 18:57:36 +0000
commit3b9ec3ce50556f2eeefd93c34c4ff855bca6b3a4 (patch)
tree63b2f6ea2823537a0bd09e8bb1790b1e4ab9d5b0 /src
parentaa63e0884d05d1425bcea321293053c013418621 (diff)
downloadmutter-3b9ec3ce50556f2eeefd93c34c4ff855bca6b3a4.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/display.c3
-rw-r--r--src/ui.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/display.c b/src/display.c
index 96183a5e7..73d584bc5 100644
--- a/src/display.c
+++ b/src/display.c
@@ -501,6 +501,9 @@ meta_display_open (const char *name)
display->current_time = CurrentTime;
display->sentinel_counter = 0;
+
+ display->grab_resize_timeout_id = 0;
+ display->grab_have_keyboard = FALSE;
display->grab_op = META_GRAB_OP_NONE;
display->grab_wireframe_active = FALSE;
diff --git a/src/ui.c b/src/ui.c
index c8486c5d8..3640cb0ff 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -219,6 +219,9 @@ meta_ui_create_frame_window (MetaUI *ui,
attrs.wmclass_class = NULL;
attrs.override_redirect = FALSE;
+ attrs.width = width;
+ attrs.height = height;
+
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
window =