From 96f433374b8daf2f8e4cc9d74a2712d8ec63f06e Mon Sep 17 00:00:00 2001 From: Aire-One Date: Fri, 30 Dec 2022 20:38:40 +0100 Subject: [PATCH] fix(Entity): add `gears_shape_function` `type_fix` --- src/awesomewm.d.tl/entity/Type_Info.tl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/awesomewm.d.tl/entity/Type_Info.tl b/src/awesomewm.d.tl/entity/Type_Info.tl index ac8f737..44635ab 100644 --- a/src/awesomewm.d.tl/entity/Type_Info.tl +++ b/src/awesomewm.d.tl/entity/Type_Info.tl @@ -1,19 +1,20 @@ local List = require "pl.List" local Map = require "pl.Map" +local gears_shape_function = "function(cr: any, width: integer, height: integer)" local type_fix : Map = Map({ awesome = "awesome", Awesome = "awesome", bool = "boolean", client = "client", Client = "client", - ["gears.shape"] = "Shape", + ["gears.shape"] = gears_shape_function, ["gears.surface"] = "Surface", image = "Image", int = "integer", screen = "screen", Screen = "screen", - shape = "Shape", + shape = gears_shape_function, surface = "Surface", tag = "tag", Tag = "tag",