all repos — fluxbox @ 9db6e018950bd831d08d9fda605e1fe89b148699

custom fork of the fluxbox windowmanager

changed screen pointer to reference
fluxgen fluxgen
commit

9db6e018950bd831d08d9fda605e1fe89b148699

parent

453e220df91fabd80a2f8e5992ad1a3a73f4efbe

1 files changed, 5 insertions(+), 4 deletions(-)

jump to
M src/Workspace.hhsrc/Workspace.hh

@@ -47,7 +47,8 @@ public:

typedef std::vector<FluxboxWindow *> Windows; typedef std::vector<Window> Stack; - explicit Workspace(BScreen *screen, FbTk::MultLayers &layermanager, unsigned int workspaceid = 0); + Workspace(BScreen &screen, FbTk::MultLayers &layermanager, + unsigned int workspaceid = 0); ~Workspace(); void setLastFocusedWindow(FluxboxWindow *w);

@@ -64,10 +65,10 @@ void setCurrent();

void shutdown(); int addWindow(FluxboxWindow *win, bool place = false); int removeWindow(FluxboxWindow *win); - BScreen *getScreen() { return screen; } + BScreen &getScreen() { return screen; } FluxboxWindow *getLastFocusedWindow() { return lastfocus; } - const BScreen *getScreen() const { return screen; } + const BScreen &getScreen() const { return screen; } const FluxboxWindow *getLastFocusedWindow() const { return lastfocus; } FbTk::Menu &menu() { return m_clientmenu; } inline const FbTk::Menu &menu() const { return m_clientmenu; }

@@ -96,7 +97,7 @@ void placeWindow(FluxboxWindow *win);

private: - BScreen *screen; + BScreen &screen; FluxboxWindow *lastfocus; FbTk::Menu m_clientmenu;