From b28a663f21ca85173d68add7eeacdc51cf4ceaf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 26 Nov 2012 11:04:30 +0100 Subject: [PATCH] Fix C++11 narrowing conversation warning SVN_SILENT --- geometry.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index ef63cae958..76fa5e3e1e 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -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); } }