add NFLAGS to ct_node
NFLAGS will be used to avoid unnecessary CPU usage for events like resizing windows, a bitflag will be instead set to notify cursetree at the end of each ct_update
This commit is contained in:
parent
759920a9cc
commit
fa97c73522
2 changed files with 17 additions and 5 deletions
|
|
@ -13,11 +13,15 @@ typedef struct _win_st WINDOW;
|
|||
#define NODE_CHILDREN_GROWTH 1.5
|
||||
#define CINDEX_MAX UCHAR_MAX
|
||||
|
||||
#define NFLAG_EMPTY (0)
|
||||
#define NFLAG_RESIZE (1<<0)
|
||||
|
||||
/* Child Index */
|
||||
typedef unsigned char cindex;
|
||||
|
||||
struct ct_node {
|
||||
struct ct_surface *surface;
|
||||
unsigned char flags;
|
||||
|
||||
struct ct_node *parent;
|
||||
enum ct_axis axis;
|
||||
|
|
@ -30,8 +34,6 @@ struct ct_node {
|
|||
int wmin_rel;
|
||||
int hmin_rel;
|
||||
} cbounds;
|
||||
|
||||
float ratio;
|
||||
};
|
||||
|
||||
/* === External Interface === */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue