mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
Merge b23e670824 into b3dcde8d69
This commit is contained in:
commit
13ea679387
5 changed files with 206 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ struct sway_container;
|
|||
struct sway_node;
|
||||
|
||||
void arrange_container(struct sway_container *container);
|
||||
void next_sibling_container_geometry(struct sway_container *child, struct sway_container *sibling, bool fullscreen);
|
||||
|
||||
void arrange_workspace(struct sway_workspace *workspace);
|
||||
|
||||
|
|
|
|||
|
|
@ -314,6 +314,21 @@ void view_begin_destroy(struct sway_view *view);
|
|||
void view_map(struct sway_view *view, struct wlr_surface *wlr_surface,
|
||||
bool fullscreen, struct wlr_output *fullscreen_output, bool decoration);
|
||||
|
||||
/**
|
||||
* Prepare the view for its upcoming mapping, sending the intended dimensions
|
||||
* so that the first frame has a chance of being correct. If CSD preferences or
|
||||
* floating tendency changes, this may turn out to be inaccurate but no worse
|
||||
* than skipping the step.
|
||||
*
|
||||
* `fullscreen` should be set to true (and optionally `fullscreen_output`
|
||||
* should be populated) if the view should be made fullscreen immediately.
|
||||
*
|
||||
* `decoration` should be set to true if the client prefers CSD. The client's
|
||||
* preference may be ignored.
|
||||
*/
|
||||
void view_premap(struct sway_view *view, struct wlr_surface *wlr_surface,
|
||||
bool fullscreen, struct wlr_output *fullscreen_output, bool decoration);
|
||||
|
||||
void view_unmap(struct sway_view *view);
|
||||
|
||||
void view_update_size(struct sway_view *view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue