ipc: expose surface_content_rect in get_tree#340
Conversation
Expose the actual view geometry (as set by the client via xdg-shell set_window_geometry) in the IPC get_tree output as 'surface_content_rect'. This is useful for clients using protocols like ext-image-copy-capture-v1 to capture foreign windows. Since the capture contains the full window surface (including Client-Side Decorations, shadows, etc.), the client needs to know the offset of the actual window content within the captured image. The surface_content_rect field exposes this offset (x, y) and size (width, height) relative to the surface.
66e8eb6 to
f38f23c
Compare
|
|
|
I think the |
|
OK, so you don't want coordinates to capture a part of the frame buffer like you would do with |
|
Is this for your project? Do you want to use the client buffer to create a static image for your suspended applications? If that is the case, I will merge it, but I have no way to test this otherwise. Most applications simply get the whole frame buffer and use |
Expose the actual view geometry (as set by the client via xdg-shell set_window_geometry) in the IPC get_tree output as 'surface_content_rect'.
This is useful for clients using protocols like ext-image-copy-capture-v1 to capture foreign windows. Since the capture contains the full window surface (including Client-Side Decorations, shadows, etc.), the client needs to know the offset of the actual window content within the captured image. The surface_content_rect field exposes this offset (x, y) and size (width, height) relative to the surface.