Fix C++11 narrowing conversation warning
SVN_SILENT
This commit is contained in:
parent
6ec1e49e92
commit
b28a663f21
1 changed files with 4 additions and 1 deletions
|
@ -809,7 +809,10 @@ void Workspace::fixPositionAfterCrash(xcb_window_t w, const xcb_get_geometry_rep
|
||||||
NETStrut frame = i.frameExtents();
|
NETStrut frame = i.frameExtents();
|
||||||
|
|
||||||
if (frame.left != 0 || frame.top != 0) {
|
if (frame.left != 0 || frame.top != 0) {
|
||||||
const uint32_t values[] = { geometry->x - frame.left, geometry->y - frame.top };
|
// left and top needed due to narrowing conversations restrictions in C++11
|
||||||
|
const uint32_t left = frame.left;
|
||||||
|
const uint32_t top = frame.top;
|
||||||
|
const uint32_t values[] = { geometry->x - left, geometry->y - top };
|
||||||
xcb_configure_window(connection(), w, XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y, values);
|
xcb_configure_window(connection(), w, XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y, values);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue