- fleshing out event system and window manager
- added tests back in for window management
This commit is contained in:
@@ -24,9 +24,14 @@ namespace fennec
|
||||
{
|
||||
|
||||
window::window(display_server* server, const config& conf, window* parent)
|
||||
: server(server), parent(parent)
|
||||
, cfg(conf), state(), root(nullptr) {
|
||||
: server(server), parent(parent), root(parent ? parent : this)
|
||||
, cfg(conf), state() {
|
||||
state.mode = conf.mode;
|
||||
while (root != nullptr and root->is_popup()) {
|
||||
root = root->get_parent();
|
||||
}
|
||||
|
||||
assertf(root != nullptr, "Failed to find appropriate top-level window.");
|
||||
}
|
||||
|
||||
window::~window() {
|
||||
|
||||
Reference in New Issue
Block a user