1 -------------------------------------------------------------------------------
2 -- Utilities shared by all modules. Categorize better if > 5 public functions
3 -------------------------------------------------------------------------------
6 -------------------------------------------------------------------------------
8 -------------------------------------------------------------------------------
9 -- Window positioning utils
10 function Util.is_left_of(a, b)
11 return a[1] == b[1] and a[2] > b[2]
14 function Util.is_right_of(a, b)
15 return Util.is_left_of(b, a)