aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.hh
diff options
context:
space:
mode:
authorMichael Abbott <michael@araneidae.co.uk>2012-09-29 07:10:48 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2012-10-04 07:36:23 (GMT)
commit391712b9805eda9d56a100f49d69b38863910565 (patch)
tree05d5a6eea9fef53a371676f76ec4c1e1ef0893a1 /src/CurrentWindowCmd.hh
parent7b6ab828c7e5453a2720462156d165707935c9ef (diff)
downloadfluxbox-391712b9805eda9d56a100f49d69b38863910565.zip
fluxbox-391712b9805eda9d56a100f49d69b38863910565.tar.bz2
Add support for nearest corner or edge resizing
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r--src/CurrentWindowCmd.hh5
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
125class StartResizingCmd: public WindowHelperCmd { 125class StartResizingCmd: public WindowHelperCmd {
126public: 126public:
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);
130protected: 131protected:
131 void real_execute(); 132 void real_execute();
132private: 133private:
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