[WIP] cfg_xrandr.lua: use local scope where appropriate (fixes #212)#218
[WIP] cfg_xrandr.lua: use local scope where appropriate (fixes #212)#218wilhelmy wants to merge 3 commits intoraboof:mainfrom
Conversation
bbcf7fc to
fe99e82
Compare
|
I'll finalize this before 4.0 but right now there's issues with the tests using local functions from the main script. |
|
FWIW this removes about 20 globals but apparently I'll have to debug it now ;( |
|
Looks like Though it'd also be a good fix if we could somehow make those functions available to |
|
(this was near the bottom of the travis console output) |
|
You could export the needed methods in one table to just add one global (iirc is the "best practice") adding at the end: Then use cfg_randr_export.singleton/is_scratchpad where necessary. Edit: I had to to this to test statusd_inetaddr2 module. |
|
Other than the travis build failure it also seems to be broken for me when I attach/detach monitors. If I restart notion with the old version of the script, all is fine. I think this will require some digging. Marking as WIP. |
|
firstKey and firstValue are also called from test_xrandr edit: candidate_screens_for_output |
|
If you're eager to release 4.0, I don't want to stall it. I'll try to make time to fix this but I can't make promises right now. Sorry! |
No description provided.