summaryrefslogtreecommitdiff
path: root/applications/goldman/source/renderer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'applications/goldman/source/renderer.hpp')
-rw-r--r--applications/goldman/source/renderer.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/applications/goldman/source/renderer.hpp b/applications/goldman/source/renderer.hpp
index 14a5964..91afe88 100644
--- a/applications/goldman/source/renderer.hpp
+++ b/applications/goldman/source/renderer.hpp
@@ -18,7 +18,7 @@ class renderer {
int cursor_y;
//bottom to top
- std::list<const window *> windows;
+ std::list<window *> windows;
std::mutex mut;
@@ -55,7 +55,11 @@ public:
void bump_cursor(int x_offset, int y_offset);
- void add_window(const window *w);
- void remove_window(const window *w);
+ void add_window(window *w);
+ void remove_window(window *w);
+
+ inline bool is_top(window *w) {
+ return windows.size() != 0 && w == windows.back();
+ }
};