diff options
author | markt <markt> | 2006-06-26 05:52:30 (GMT) |
---|---|---|
committer | markt <markt> | 2006-06-26 05:52:30 (GMT) |
commit | ee02bc2258595060a4b1ee0bcab5a76c6a9a5af2 (patch) | |
tree | 05e470f2a4bfd9dea51ca607a1a58e401b00462b /src | |
parent | aedcaea054a91f10329377ca776396326d0078fa (diff) | |
download | fluxbox_paul-ee02bc2258595060a4b1ee0bcab5a76c6a9a5af2.zip fluxbox_paul-ee02bc2258595060a4b1ee0bcab5a76c6a9a5af2.tar.bz2 |
Fix FocusHidden (added m_focus_hidden to FluxboxWindow)
Diffstat (limited to 'src')
-rw-r--r-- | src/Window.cc | 2 | ||||
-rw-r--r-- | src/Window.hh | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc index 2ac6a01..5fb5d86 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -311,6 +311,7 @@ FluxboxWindow::FluxboxWindow(WinClient &client, FbWinFrameTheme &tm, | |||
311 | m_toggled_decos(false), | 311 | m_toggled_decos(false), |
312 | m_shaped(false), | 312 | m_shaped(false), |
313 | m_icon_hidden(false), | 313 | m_icon_hidden(false), |
314 | m_focus_hidden(false), | ||
314 | m_old_pos_x(0), m_old_pos_y(0), | 315 | m_old_pos_x(0), m_old_pos_y(0), |
315 | m_old_width(1), m_old_height(1), | 316 | m_old_width(1), m_old_height(1), |
316 | m_last_button_x(0), m_last_button_y(0), | 317 | m_last_button_x(0), m_last_button_y(0), |
@@ -2073,6 +2074,7 @@ void FluxboxWindow::moveToLayer(int layernum) { | |||
2073 | } | 2074 | } |
2074 | 2075 | ||
2075 | void FluxboxWindow::setFocusHidden(bool value) { | 2076 | void FluxboxWindow::setFocusHidden(bool value) { |
2077 | m_focus_hidden = value; | ||
2076 | if (isInitialized()) | 2078 | if (isInitialized()) |
2077 | m_statesig.notify(); | 2079 | m_statesig.notify(); |
2078 | } | 2080 | } |
diff --git a/src/Window.hh b/src/Window.hh index 2b4ef92..5358e54 100644 --- a/src/Window.hh +++ b/src/Window.hh | |||
@@ -317,7 +317,7 @@ public: | |||
317 | inline void setMovable(bool movable) { functions.move = movable; } | 317 | inline void setMovable(bool movable) { functions.move = movable; } |
318 | inline void setResizable(bool resizable) { functions.resize = resizable; } | 318 | inline void setResizable(bool resizable) { functions.resize = resizable; } |
319 | 319 | ||
320 | inline bool isFocusHidden() const { return (m_blackbox_attrib.flags & ATTRIB_HIDDEN); } | 320 | inline bool isFocusHidden() const { return m_focus_hidden; } |
321 | inline bool isIconHidden() const { return m_icon_hidden; } | 321 | inline bool isIconHidden() const { return m_icon_hidden; } |
322 | inline bool isManaged() const { return m_initialized; } | 322 | inline bool isManaged() const { return m_initialized; } |
323 | inline bool isInitialized() const { return m_initialized; } | 323 | inline bool isInitialized() const { return m_initialized; } |
@@ -543,6 +543,7 @@ private: | |||
543 | 543 | ||
544 | bool m_shaped; ///< if the window is shaped with a mask | 544 | bool m_shaped; ///< if the window is shaped with a mask |
545 | bool m_icon_hidden; ///< if the window is in the iconbar | 545 | bool m_icon_hidden; ///< if the window is in the iconbar |
546 | bool m_focus_hidden; ///< if the window is in the NextWindow list | ||
546 | int m_old_pos_x, m_old_pos_y; ///< old position so we can restore from maximized | 547 | int m_old_pos_x, m_old_pos_y; ///< old position so we can restore from maximized |
547 | unsigned int m_old_width, m_old_height; ///< old size so we can restore from maximized state | 548 | unsigned int m_old_width, m_old_height; ///< old size so we can restore from maximized state |
548 | int m_last_button_x, ///< last known x position of the mouse button | 549 | int m_last_button_x, ///< last known x position of the mouse button |