bugfix: strut partial is set a strange value

This commit is contained in:
Hualet Wang 2015-07-16 19:43:34 +08:00
parent 5c36c09b54
commit d2feb8c227

View File

@ -30,7 +30,10 @@ XcbMisc * XcbMisc::instance()
void XcbMisc::set_strut_partial(int winId, Orientation orientation, uint strut, uint start, uint end)
{
xcb_ewmh_wm_strut_partial_t strut_partial;
// xcb_ewmh_wm_strut_partial_t strut_partial is very different from
// xcb_ewmh_wm_strut_partial_t strut_partial {};
// the latter one ensures all its member to be initialized to 0;
xcb_ewmh_wm_strut_partial_t strut_partial {};
switch (orientation) {
case OrientationLeft: