-
Notifications
You must be signed in to change notification settings - Fork 17
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
GPII-2395: XRandR bridge should provide all posible screen resolutions #92
base: master
Are you sure you want to change the base?
Conversation
- Modified the node XRandR add-on to return the available screen resolutions as an array of JSON objects, rather than strings. - Refactored the XRandR bridge code into a fluid component. - Updated the unit tests in light of the above.
CI job passed. |
Modified "screen-resolution" payload to now contain: - "current-resolution" (width and height) - "available-resolution" (array of widths and heights).
CI job passed. |
Modified to be analagous to the Windows display settings handler.
CI job passed. |
CI job passed. |
Remvoed {that} parameter from get() and set() functions.
CI job passed. |
CI job failed. Please visit http://lists.gpii.net/pipermail/ci/ for more details. |
ok to test |
CI job passed. |
ok to test |
CI job passed: https://ci.gpii.net/job/linux-tests/133/ |
CI job passed: https://ci.gpii.net/job/linux-tests/135/ |
CI job passed: https://ci.gpii.net/job/linux-tests/141/ |
ok to test |
CI job passed: https://ci.gpii.net/job/linux-tests/143/ |
ok to test |
CI job passed: https://ci.gpii.net/job/linux-tests/149/ |
ok to test |
CI job passed: https://ci.gpii.net/job/linux-tests/156/ |
Includes updating to latest master branch.
CI job passed: https://ci.gpii.net/job/linux-tests/160/ |
@javihernandez, @kaspermarkus Here are changes to the Linux/GNOME XRandR bridge to provide all possible screen resolutions when asked.
I went a little further than just modifying the node add-on and the bridge to provide this information. I also refactored the bridge into a fluid component. It was previously a set of namespaced functions -- a number of
fluid.defaults()
each with a grade of"fluid.function"
. Now those functions are invokers within agpii.xrandr
fluid component.One issue, though: @javihernandez, I'm not clear what the
gpii.xrandr.allSettings
construct at line 93 is for. I couldn't see where it was actually used outside of the XRandR bridge. I kept it, and its use inside the bridge, but couldn't actually fit it into the newgpii.xrandr
component.Anyhow, let me know what you think.