mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
transaction: move structs into to the header
This commit is contained in:
parent
32b93ef6ea
commit
1204ee4413
2 changed files with 23 additions and 20 deletions
|
|
@ -1,6 +1,10 @@
|
|||
#ifndef _SWAY_TRANSACTION_H
|
||||
#define _SWAY_TRANSACTION_H
|
||||
#include <stdint.h>
|
||||
#include "sway/output.h"
|
||||
#include "sway/tree/container.h"
|
||||
#include "sway/tree/workspace.h"
|
||||
|
||||
|
||||
/**
|
||||
* Transactions enable us to perform atomic layout updates.
|
||||
|
|
@ -19,7 +23,25 @@
|
|||
* create and commits a transaction from the dirty containers.
|
||||
*/
|
||||
|
||||
struct sway_transaction_instruction;
|
||||
struct sway_transaction {
|
||||
struct wl_event_source *timer;
|
||||
list_t *instructions; // struct sway_transaction_instruction *
|
||||
size_t num_waiting;
|
||||
size_t num_configures;
|
||||
struct timespec commit_time;
|
||||
};
|
||||
|
||||
struct sway_transaction_instruction {
|
||||
struct sway_transaction *transaction;
|
||||
struct sway_node *node;
|
||||
union {
|
||||
struct sway_output_state output_state;
|
||||
struct sway_workspace_state workspace_state;
|
||||
struct sway_container_state container_state;
|
||||
};
|
||||
uint32_t serial;
|
||||
};
|
||||
|
||||
struct sway_view;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue