frames: Make sure to initialize button_state

Otherwise, we're comparing with uninitialized memory. Spotted by
valgrind.
This commit is contained in:
Jasper St. Pierre 2014-09-29 19:57:55 -06:00
parent b735571688
commit 0faa900207

View File

@ -573,6 +573,7 @@ meta_frames_manage_window (MetaFrames *frames,
frame->title = NULL;
frame->shape_applied = FALSE;
frame->prelit_control = META_FRAME_CONTROL_NONE;
frame->button_state = META_BUTTON_STATE_NORMAL;
meta_core_grab_buttons (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), frame->xwindow);