awesome/lib/wibox
Shay Agroskin 749422100e layout/fixed: Remove code duplication
The function has several expressions of the form
    if self._private.dir == "y" then
This patch stores the result of
    self._private.dir == "y"
to avoid code duplication.

Also remove the 'used_in_dir' and 'in_dir' variables since their values
can be calculated using other variables in the function and updating
them individually is error prone.

This patch doesn't do any functional changes.

Signed-off-by: Shay Agroskin <agrosshay@gmail.com>
2021-03-26 16:11:01 +03:00
..
container Remove unused first parameter in some constructors 2021-03-08 20:09:41 +01:00
layout layout/fixed: Remove code duplication 2021-03-26 16:11:01 +03:00
widget Remove unused first parameter in some constructors 2021-03-08 20:09:41 +01:00
drawable.lua titlebar/wibox: Support widget definition in set_widget. 2019-10-05 22:57:04 -04:00
hierarchy.lua wibox.hierarchy:draw: Clear paths after .draw (#2805) 2019-07-03 16:55:38 -04:00
init.lua fix wibox declarative opacity 2020-04-26 17:36:36 +02:00