diff options
Diffstat (limited to 'src/Workspace.hh')
-rw-r--r-- | src/Workspace.hh | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/Workspace.hh b/src/Workspace.hh index 61abe9c..48698ab 100644 --- a/src/Workspace.hh +++ b/src/Workspace.hh | |||
@@ -25,16 +25,18 @@ | |||
25 | #ifndef WORKSPACE_HH | 25 | #ifndef WORKSPACE_HH |
26 | #define WORKSPACE_HH | 26 | #define WORKSPACE_HH |
27 | 27 | ||
28 | |||
28 | #include "Clientmenu.hh" | 29 | #include "Clientmenu.hh" |
29 | #include "Window.hh" | ||
30 | #include "NotCopyable.hh" | 30 | #include "NotCopyable.hh" |
31 | 31 | ||
32 | #include <X11/Xlib.h> | 32 | #include <X11/Xlib.h> |
33 | |||
33 | #include <string> | 34 | #include <string> |
34 | #include <vector> | 35 | #include <vector> |
35 | #include <list> | 36 | #include <list> |
36 | 37 | ||
37 | class BScreen; | 38 | class BScreen; |
39 | class FluxboxWindow; | ||
38 | 40 | ||
39 | /** | 41 | /** |
40 | Handles a single workspace | 42 | Handles a single workspace |
@@ -68,14 +70,10 @@ public: | |||
68 | 70 | ||
69 | const BScreen *getScreen() const { return screen; } | 71 | const BScreen *getScreen() const { return screen; } |
70 | const FluxboxWindow *getLastFocusedWindow() const { return lastfocus; } | 72 | const FluxboxWindow *getLastFocusedWindow() const { return lastfocus; } |
71 | Clientmenu *menu() { return &m_clientmenu; } | 73 | Clientmenu &menu() { return m_clientmenu; } |
72 | /** | 74 | /// client menu |
73 | @return client menu | 75 | inline const Clientmenu &menu() const { return m_clientmenu; } |
74 | */ | 76 | /// name of this workspace |
75 | inline const Clientmenu *menu() const { return &m_clientmenu; } | ||
76 | /** | ||
77 | @return name of this workspace | ||
78 | */ | ||
79 | inline const std::string &name() const { return m_name; } | 77 | inline const std::string &name() const { return m_name; } |
80 | /** | 78 | /** |
81 | @return the number of this workspace, note: obsolete, should be in BScreen | 79 | @return the number of this workspace, note: obsolete, should be in BScreen |