mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
bugfix: strut partial is set a strange value
This commit is contained in:
parent
5c36c09b54
commit
d2feb8c227
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user