mirror of
https://github.com/swaywm/sway.git
synced 2025-11-27 06:59:53 -05:00
Implement atomic layout updates for tree operations
This implements atomic layout updates for when views map, reparent or unmap.
This commit is contained in:
parent
1c89f32533
commit
38398e2d77
18 changed files with 545 additions and 389 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#ifndef _SWAY_TRANSACTION_H
|
||||
#define _SWAY_TRANSACTION_H
|
||||
#include <wlr/render/wlr_texture.h>
|
||||
#include "sway/tree/container.h"
|
||||
|
||||
/**
|
||||
|
|
@ -48,4 +49,12 @@ void transaction_commit(struct sway_transaction *transaction);
|
|||
*/
|
||||
void transaction_notify_view_ready(struct sway_view *view, uint32_t serial);
|
||||
|
||||
/**
|
||||
* Get the texture that should be rendered for a view.
|
||||
*
|
||||
* In most cases this will return the normal live texture for a view, but if the
|
||||
* view is in a transaction then it'll return a saved texture.
|
||||
*/
|
||||
struct wlr_texture *transaction_get_texture(struct sway_view *view);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue