X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fwindow.cc;h=04f72cd9e4ebd83010660db32c2ba0daec6c407b;hb=e2626c41c841dbbfb64ddf6341b4e23089036299;hp=fb46b381da7e53eee2b2eac5a7a0d1d9d101bb2e;hpb=59cd3a77c4517e387f4c2e21e8b62a9017370116;p=winnie
diff --git a/src/window.cc b/src/window.cc
index fb46b38..04f72cd 100644
--- a/src/window.cc
+++ b/src/window.cc
@@ -1,3 +1,24 @@
+/*
+winnie - an experimental window system
+
+Copyright (C) 2013 Eleni Maria Stea
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see .
+
+Author: Eleni Maria Stea
+*/
+
#include
#include //TODO
#include
@@ -16,6 +37,7 @@ Window::Window()
dirty = true;
managed = true;
focusable = true;
+ state = STATE_NORMAL;
}
Window::~Window()
@@ -237,3 +259,13 @@ Window *Window::get_parent()
{
return parent;
}
+
+void Window::set_state(State state)
+{
+ this->state = state;
+}
+
+Window::State Window::get_state() const
+{
+ return state;
+}