diff options
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/Window.cc b/src/Window.cc index 8126e9e..909d8db 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -264,8 +264,8 @@ FluxboxWindow::FluxboxWindow(WinClient &client, FbWinFrameTheme &tm, | |||
264 | m_toggled_decos(false), | 264 | m_toggled_decos(false), |
265 | m_icon_hidden(false), | 265 | m_icon_hidden(false), |
266 | m_focus_hidden(false), | 266 | m_focus_hidden(false), |
267 | m_focus_new(screen().focusControl(), &FocusControl::focusNew), | 267 | m_focus_new(BoolAcc(screen().focusControl(), &FocusControl::focusNew)), |
268 | m_mouse_focus(screen().focusControl(), &FocusControl::isMouseFocus), | 268 | m_mouse_focus(BoolAcc(screen().focusControl(), &FocusControl::isMouseFocus)), |
269 | m_click_focus(true), | 269 | m_click_focus(true), |
270 | m_old_pos_x(0), m_old_pos_y(0), | 270 | m_old_pos_x(0), m_old_pos_y(0), |
271 | m_old_width(1), m_old_height(1), | 271 | m_old_width(1), m_old_height(1), |
@@ -1745,17 +1745,18 @@ void FluxboxWindow::shade() { | |||
1745 | } | 1745 | } |
1746 | 1746 | ||
1747 | void FluxboxWindow::shadeOn() { | 1747 | void FluxboxWindow::shadeOn() { |
1748 | |||
1749 | if (!shaded) | 1748 | if (!shaded) |
1750 | shade(); | 1749 | shade(); |
1751 | |||
1752 | } | 1750 | } |
1753 | 1751 | ||
1754 | void FluxboxWindow::shadeOff() { | 1752 | void FluxboxWindow::shadeOff() { |
1755 | |||
1756 | if (shaded) | 1753 | if (shaded) |
1757 | shade(); | 1754 | shade(); |
1755 | } | ||
1758 | 1756 | ||
1757 | void FluxboxWindow::setShaded(bool val) { | ||
1758 | if (val != shaded) | ||
1759 | shade(); | ||
1759 | } | 1760 | } |
1760 | 1761 | ||
1761 | void FluxboxWindow::stick() { | 1762 | void FluxboxWindow::stick() { |
@@ -1783,6 +1784,17 @@ void FluxboxWindow::stick() { | |||
1783 | 1784 | ||
1784 | } | 1785 | } |
1785 | 1786 | ||
1787 | void FluxboxWindow::setStuck(bool val) { | ||
1788 | if (val != stuck) | ||
1789 | stick(); | ||
1790 | } | ||
1791 | |||
1792 | void FluxboxWindow::setIconic(bool val) { | ||
1793 | if (val && isIconic()) | ||
1794 | deiconify(); | ||
1795 | if (!val && !isIconic()) | ||
1796 | iconify(); | ||
1797 | } | ||
1786 | 1798 | ||
1787 | void FluxboxWindow::raise() { | 1799 | void FluxboxWindow::raise() { |
1788 | if (isIconic()) | 1800 | if (isIconic()) |