-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] cfg_xrandr.lua: use local scope where appropriate (fixes #212) #218
base: main
Are you sure you want to change the base?
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.