wm/leftwm: fix build on i386
This commit is contained in:
parent
06d0f6cb6f
commit
d339c2cfee
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: distinfo,v 1.11 2023/11/17 07:43:54 pin Exp $
|
||||
$NetBSD: distinfo,v 1.12 2023/12/31 08:58:57 pin Exp $
|
||||
|
||||
BLAKE2s (addr2line-0.21.0.crate) = aa7d8fa248d0454d92b962f5d741ba41c55564299d33e6814e70dfe0b71bbcc7
|
||||
SHA512 (addr2line-0.21.0.crate) = afde7660dda30dee240e79df1fb5b92d4572520bf17a134ef3765e2a077af9e13713952d52e27fae420109b40f6e24dbce1056687dbcbead858ffc21cc7dc69b
|
||||
|
@ -501,3 +501,4 @@ Size (x11-dl-2.21.0.crate) = 66823 bytes
|
|||
BLAKE2s (xdg-2.5.2.crate) = 0f174fa5ab3c513b691bf1bf0a4cb628e25bc0f9a2af9700ec21c07cfe8f8609
|
||||
SHA512 (xdg-2.5.2.crate) = 12c7f42d2afd63d8d196511fa069519a0c495fc2555c87c059b96b46d7e2a2c51c31836c48fb329806d312a45a2fd67b4243793aa91e2139e2aa3f05230b2edd
|
||||
Size (xdg-2.5.2.crate) = 14394 bytes
|
||||
SHA1 (patch-display-servers_xlib-display-server_src_xwrap_setters.rs) = 600a05b3735ecebf91ee18a2b5f12d39358d9a0d
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
$NetBSD: patch-display-servers_xlib-display-server_src_xwrap_setters.rs,v 1.1 2023/12/31 08:58:57 pin Exp $
|
||||
|
||||
Fix build on i386.
|
||||
https://github.com/leftwm/leftwm/pull/1202
|
||||
Discussion: https://github.com/leftwm/leftwm/discussions/1201
|
||||
|
||||
--- display-servers/xlib-display-server/src/xwrap/setters.rs.orig 2023-12-31 08:40:24.874175267 +0000
|
||||
+++ display-servers/xlib-display-server/src/xwrap/setters.rs
|
||||
@@ -94,7 +94,7 @@ impl XWrap {
|
||||
|
||||
/// Sets a desktop property.
|
||||
pub fn set_desktop_prop(&self, data: &[u32], atom: c_ulong) {
|
||||
- let x_data: Vec<c_long> = data.iter().map(|x| i64::from(*x)).collect();
|
||||
+ let x_data: Vec<c_long> = data.iter().map(|x| *x as c_long).collect();
|
||||
self.replace_property_long(self.root, atom, xlib::XA_CARDINAL, &x_data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue