summaryrefslogtreecommitdiff
path: root/src/Window.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.hh')
-rw-r--r--src/Window.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Window.hh b/src/Window.hh
index 1d54d18..d0db606 100644
--- a/src/Window.hh
+++ b/src/Window.hh
@@ -286,6 +286,12 @@ public:
286 void setFocusHidden(bool value); 286 void setFocusHidden(bool value);
287 /// sets the window icon hidden state 287 /// sets the window icon hidden state
288 void setIconHidden(bool value); 288 void setIconHidden(bool value);
289 /// sets whether or not the window normally gets focus when mapped
290 void setFocusNew(bool value) { m_focus_new = value; }
291 /// sets whether or not the window gets focused with mouse
292 void setMouseFocus(bool value) { m_mouse_focus = value; }
293 /// sets whether or not the window gets focused with click
294 void setClickFocus(bool value) { m_click_focus = value; }
289 void reconfigure(); 295 void reconfigure();
290 296
291 297
@@ -603,6 +609,9 @@ private:
603 609
604 bool m_icon_hidden; ///< if the window is in the iconbar 610 bool m_icon_hidden; ///< if the window is in the iconbar
605 bool m_focus_hidden; ///< if the window is in the NextWindow list 611 bool m_focus_hidden; ///< if the window is in the NextWindow list
612 bool m_focus_new; ///< if the window is normally focused when mapped
613 bool m_mouse_focus; ///< if the window is focused with EnterNotify
614 bool m_click_focus; ///< if the window is focused by clicking
606 int m_old_pos_x, m_old_pos_y; ///< old position so we can restore from maximized 615 int m_old_pos_x, m_old_pos_y; ///< old position so we can restore from maximized
607 unsigned int m_old_width, m_old_height; ///< old size so we can restore from maximized state 616 unsigned int m_old_width, m_old_height; ///< old size so we can restore from maximized state
608 int m_last_button_x, ///< last known x position of the mouse button 617 int m_last_button_x, ///< last known x position of the mouse button