Some progress to handle notches / cutouts of #linuxmobile phones better in #phosh : I have a small lib that gets panel cutout / notch information as #svg paths and can calculate a bounding box . #phoc can use it to render cutouts for debugging and #phosh can use it for layout (so far only to shift the panel down). (see follow up posts for more pictures).
phosh using that information to push the top panel down because there's a (simulated) notch:
@agx looks good
@agx this is an awesome step for linux phones to handle notches! Can't wait for this to move elements around when a notch is present!
@agx instead of pushing down, shouldn't it efficiently utilise the space, like not display any indicators in the notch area, but still effectively use the panel
@hemish read thw whole thing: https://social.librem.one/@agx/109682949493890985
Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.
Stay safe. Please abide by our code of conduct.
MRs are linked here: https://gitlab.gnome.org/guidog/gmobile/-/merge_requests/8
Next steps (after cleaning up a bit and getting it merged) is allowing phosh to make better use of that information (e.g. to shift ui elements to the side instead of down) and providing the information to wayland clients so e.g. video players can make use of it in fullscreen mode.