diff --git a/lib/wibox/drawable.lua b/lib/wibox/drawable.lua index d2e10e9f8..a74c5d7da 100644 --- a/lib/wibox/drawable.lua +++ b/lib/wibox/drawable.lua @@ -429,7 +429,11 @@ function drawable.new(d, widget_context_skeleton, drawable_name) return end ret._need_relayout = true - ret:draw() + -- When not visible, we will be redrawn when we become visible. In the + -- mean-time, the layout does not matter much. + if ret._visible then + ret:draw() + end end -- Add __tostring method to metatable.