Code Review
/
staging
/
windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
WIP split layouts, reading config, defining data layout.
[staging/windowmanager.git]
/
src
/
app.hpp
diff --git
a/src/app.hpp
b/src/app.hpp
index
d1fc912
..
37122ef
100644
(file)
--- a/
src/app.hpp
+++ b/
src/app.hpp
@@
-98,6
+98,17
@@
struct id_allocator {
}
};
}
};
+struct LayoutState {
+ enum States {
+ LayoutSingle,
+ LayoutSplit,
+ };
+
+ enum States state;
+ int main;
+ int sub;
+};
+
struct App {
struct binding_api api;
struct controller_hooks chooks;
struct App {
struct binding_api api;
struct controller_hooks chooks;
@@
-122,6
+133,8
@@
struct App {
return this->id_alloc.lookup(id);
}
return this->id_alloc.lookup(id);
}
+ struct LayoutState state;
+
explicit App(wl::display *d);
~App();
explicit App(wl::display *d);
~App();
@@
-159,6
+172,8
@@
struct App {
void activate(unsigned id);
void deactivate(unsigned id);
void activate(unsigned id);
void deactivate(unsigned id);
+
+ bool can_split(unsigned new_id);
};
} // namespace wm
};
} // namespace wm