Fix C++11 narrowing conversation warning

SVN_SILENT
This commit is contained in:
Martin Gräßlin 2012-11-26 11:04:30 +01:00
parent 6ec1e49e92
commit b28a663f21

View file

@ -809,7 +809,10 @@ void Workspace::fixPositionAfterCrash(xcb_window_t w, const xcb_get_geometry_rep
NETStrut frame = i.frameExtents();
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);
}
}