diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-06-03 17:24:53 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-06-09 17:55:39 +0000 |
commit | ac0b338b3e026d0d05a447894de9a6a994da82dc (patch) | |
tree | 168e0004f0e54cb2fc480485580cd55a46ee3fb5 /src/gui/widgets/window.h | |
parent | cdf986b813d267b1d31a28400c0ee38d5e485154 (diff) | |
download | mana-ac0b338b3e026d0d05a447894de9a6a994da82dc.tar.gz mana-ac0b338b3e026d0d05a447894de9a6a994da82dc.tar.bz2 mana-ac0b338b3e026d0d05a447894de9a6a994da82dc.tar.xz mana-ac0b338b3e026d0d05a447894de9a6a994da82dc.zip |
Enable resizing windows from all sides
Previously, the top edge of windows could not be dragged. Now you can also
resize windows by their top edge, as well as the top-left and top-right
corners.
Diffstat (limited to 'src/gui/widgets/window.h')
-rw-r--r-- | src/gui/widgets/window.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h index ef529a9f..975de335 100644 --- a/src/gui/widgets/window.h +++ b/src/gui/widgets/window.h @@ -349,6 +349,9 @@ class Window : public gcn::Window, gcn::WidgetListener */ static int getGuiAlpha(); + protected: + static int mouseResize; /**< Active resize handles */ + private: enum ResizeHandles { @@ -394,7 +397,6 @@ class Window : public gcn::Window, gcn::WidgetListener int mDefaultWidth; /**< Default window width */ int mDefaultHeight; /**< Default window height */ - static int mouseResize; /**< Active resize handles */ static int instances; /**< Number of Window instances */ Skin *mSkin; /**< Skin in use by this window */ |