ports/x11/blackbox/patches/patch-lib_EWMH_cc

14 lines
598 B
Text

error: non-constant-expression cannot be narrowed from type 'long' to 'unsigned long' in initializer list
Index: lib/EWMH.cc
--- lib/EWMH.cc.orig
+++ lib/EWMH.cc
@@ -247,7 +247,7 @@ bool bt::EWMH::readDesktopGeometry(Window target,
void bt::EWMH::setDesktopViewport(Window target, int x, int y) const {
const unsigned long viewport[] =
- { static_cast<long>(x), static_cast<long>(y) };
+ { static_cast<unsigned long>(x), static_cast<unsigned long>(y) };
setProperty(target, XA_CARDINAL, net_desktop_viewport,
reinterpret_cast<const unsigned char *>(viewport), 2);
}