diff options
author | Michael Abbott <michael@araneidae.co.uk> | 2012-09-29 07:10:48 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2012-10-04 07:36:23 (GMT) |
commit | 391712b9805eda9d56a100f49d69b38863910565 (patch) | |
tree | 05d5a6eea9fef53a371676f76ec4c1e1ef0893a1 /src/CurrentWindowCmd.hh | |
parent | 7b6ab828c7e5453a2720462156d165707935c9ef (diff) | |
download | fluxbox_pavel-391712b9805eda9d56a100f49d69b38863910565.zip fluxbox_pavel-391712b9805eda9d56a100f49d69b38863910565.tar.bz2 |
Add support for nearest corner or edge resizing
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r-- | src/CurrentWindowCmd.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/CurrentWindowCmd.hh b/src/CurrentWindowCmd.hh index f406796..95175f2 100644 --- a/src/CurrentWindowCmd.hh +++ b/src/CurrentWindowCmd.hh | |||
@@ -124,13 +124,16 @@ protected: | |||
124 | // begin resizing with mouse | 124 | // begin resizing with mouse |
125 | class StartResizingCmd: public WindowHelperCmd { | 125 | class StartResizingCmd: public WindowHelperCmd { |
126 | public: | 126 | public: |
127 | explicit StartResizingCmd(FluxboxWindow::ResizeModel mode):m_mode(mode) { } | 127 | explicit StartResizingCmd(FluxboxWindow::ResizeModel mode, int corner_size_px, int corner_size_pc): |
128 | m_mode(mode), m_corner_size_px(corner_size_px), m_corner_size_pc(corner_size_pc) { } | ||
128 | static FbTk::Command<void> *parse(const std::string &command, | 129 | static FbTk::Command<void> *parse(const std::string &command, |
129 | const std::string &args, bool trusted); | 130 | const std::string &args, bool trusted); |
130 | protected: | 131 | protected: |
131 | void real_execute(); | 132 | void real_execute(); |
132 | private: | 133 | private: |
133 | const FluxboxWindow::ResizeModel m_mode; | 134 | const FluxboxWindow::ResizeModel m_mode; |
135 | const int m_corner_size_px; // Corner size in pixels | ||
136 | const int m_corner_size_pc; // and in percent of half window width/height | ||
134 | }; | 137 | }; |
135 | 138 | ||
136 | // begin tabbing with mouse | 139 | // begin tabbing with mouse |