awesome/lib/gears
Emmanuel Lepage Vallée e888d983ef
legacy: Temporary workaround for #2897. (#2898)
The `:keys()` and `:buttons()` APIs moved from get/set single methods
to properties. It works fine if you use the new or old API, but has
limitations when mixing them. `awful.rules` calls properties in a loop
after checking if it is a function. Thus it triggers the secondary
codepath to try to handle this case.

This codepath was tested with gears.objects based components
(ie. widgets). It was not tested with clients and tags, and it
didn't work because they use `awful.tag.getproperty` and
`awful.client.property.get` instead of `._private` like all
newer components. Those old functions are officially deprecated,
but used by tons of configs and modules ported from v3.5 and thus
still the default way to access Lua properties in our implementation.

This commit adds a `_private` to anything that doesn't have one to
at least make the error stop. It will "mostly" work until a more
complete solution is added. Reverting the 2 PRs that changed this
would delay getting more feedbacks.
2019-10-09 13:35:05 -04:00
..
object legacy: Temporary workaround for #2897. (#2898) 2019-10-09 13:35:05 -04:00
sort doc: Use an explicit tag for all static functions. 2019-06-08 18:14:13 -04:00
cache.lua doc: Add a constructor stereotype for everything. 2019-06-08 18:13:42 -04:00
color.lua doc: Use an explicit tag for all static functions. 2019-06-08 18:14:13 -04:00
debug.lua doc: Use an explicit tag for all static functions. 2019-06-08 18:14:13 -04:00
filesystem.lua doc: Use an explicit tag for all static functions. 2019-06-08 18:14:13 -04:00
geometry.lua gears.geometry: Add a function to compare 2 rectangles. 2019-09-04 13:11:47 -04:00
init.lua gears: Add a new sort module 2018-03-04 01:29:33 -05:00
matcher.lua Fix some typos (#2880) 2019-09-23 18:39:12 +02:00
math.lua doc: Use an explicit tag for all static functions. 2019-06-08 18:14:13 -04:00
matrix.lua doc: Fix all the property, theme and field types. 2019-06-08 18:14:14 -04:00
object.lua class: Share the module level signal system implementation. 2019-08-03 01:45:22 -04:00
protected_call.lua tests: Expose the previously private gears.protect_call error handlers. 2019-08-03 01:45:22 -04:00
shape.lua Make shapes more robust w.r.t pre-existing paths (#2806) 2019-07-03 16:56:08 -04:00
string.lua doc: Use an explicit tag for all static functions. 2019-06-08 18:14:13 -04:00
surface.lua doc: Use an explicit tag for all static functions. 2019-06-08 18:14:13 -04:00
table.lua gears.table: Add a new way to merge 2 tables. 2019-09-29 18:20:15 -04:00
timer.lua doc: Use an explicit tag for all static functions. 2019-06-08 18:14:13 -04:00
wallpaper.lua doc: Use an explicit tag for all static functions. 2019-06-08 18:14:13 -04:00