kiwmi icon indicating copy to clipboard operation
kiwmi copied to clipboard

Tools for an ‘inspect mode’

Open ghost opened this issue 3 years ago • 1 comments

This is just an idea, but I’d like to know what you think about it and if you would support it. The goal would be to allow users to create something like the element picker in web browsers’ devtools, but I suppose it could be used in other ways.

I also have no idea when I would be able to do it, so it’s possible that this ticket would be hanging here forever.


I think it would mean something like this:

  • a surface_at function, or maybe surfaces_at (giving all, not just the topmost one)
  • a kiwmi_surface or kiwmi_surface_info type to transfer the properties to lua
    • since there are many surface extensions, it wouldn’t be so simple
  • a way to render before/after each surface, not just each view
  • changing the cursor shape?

I haven’t gone much further than to this rough draft.

ghost avatar Aug 24 '21 16:08 ghost

Rendering is going to be very different in the future anyways, the current API is just a temporary work around.

Otherwise, sounds good! Having more flexibility in that regard could also help debug kiwmi issues.

buffet avatar Aug 25 '21 20:08 buffet