aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/macwindowmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/macgui/macwindowmanager.h')
-rw-r--r--graphics/macgui/macwindowmanager.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/macgui/macwindowmanager.h b/graphics/macgui/macwindowmanager.h
index 61f4899481..963fc358dd 100644
--- a/graphics/macgui/macwindowmanager.h
+++ b/graphics/macgui/macwindowmanager.h
@@ -116,10 +116,15 @@ public:
*/
void addWindowInitialized(MacWindow *macwindow);
/**
+ * Returns the last allocated id
+ * @return last allocated window id
+ */
+ int getLastId() { return _lastId; }
+ /**
* Returns the next available id and the increments the internal counter.
* @return next (new) window id that can be used
*/
- int getNextId();
+ int getNextId() { return _lastId++; }
/**
* Add the menu to the desktop.
* Note that the returned menu is empty, and therefore must be filled