Implement <resize><drawContents>

<resize><drawContents>[yes|no] configures whether to let the clients
redraw its window content content while resizing.

When <resize><drawContents> is set to no, a multi-rect is shown to
indicate the geometry of the resized window.
This commit is contained in:
tokyo4j 2024-05-29 11:06:39 +09:00 committed by Johan Malm
parent 25415eb7ab
commit bb1d0b4352
10 changed files with 113 additions and 12 deletions

View file

@ -238,6 +238,10 @@ struct view {
struct wlr_scene_rect *background;
struct scaled_font_buffer *text;
} resize_indicator;
struct resize_outlines {
struct wlr_box view_geo;
struct multi_rect *rect;
} resize_outlines;
struct foreign_toplevel {
struct wlr_foreign_toplevel_handle_v1 *handle;