Add hack for Xft.dpi for xrdb_get_value
Possibly get this value from somewhere else, we'll worry about this
later though (specifically when we switch to wlroots and this value will
be easier to get)
@@ -200,7 +200,11 @@ fn xkb_get_layout_group(_: &Lua, _group: i32) -> rlua::Result<()> {
Ok(())
}
-fn xrdb_get_value(_: &Lua, _: Value) -> rlua::Result<()> {
+fn xrdb_get_value(lua: &Lua, (_resource_class, resource_name): (String, String))
+ -> rlua::Result<Value> {
+ if &resource_name == "Xft.dpi" {
+ return Ok("1".to_lua(lua)?)
+ }
warn!("xrdb_get_value not supported");
- Ok(())
+ Ok(Value::Nil)
}
