From e47596423851f1cdb2ec57100976f9cde05db837 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Thu, 1 May 2014 16:25:46 -0400 Subject: [PATCH] Fix a recent arrow style regression --- style/arrow.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/style/arrow.lua b/style/arrow.lua index 6a39215..26c347e 100644 --- a/style/arrow.lua +++ b/style/arrow.lua @@ -80,6 +80,9 @@ local function get_arrow_x(data,direction) end local function _set_direction(data,direction) + if not data._arrow_x then + get_arrow_x(data,direction) + end local geometry = (direction == "left" or direction == "right") and {width = data.height, height = data.width} or {height = data.height, width = data.width} local top_clip_surface = do_gen_menu_top(data,geometry.width,geometry.height,10,data.border_width,{bg=beautiful.fg_normal or "#0000ff",fg=data.bg or "#00ffff"}) local top_bounding_surface = do_gen_menu_top(data,geometry.width,geometry.height,10,0,{bg="#00000000",fg="#ffffffff"})