15 lines
598 B
Text
15 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);
|
||
|
}
|