aboutsummaryrefslogtreecommitdiff
path: root/src/Window.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-25 21:05:07 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-25 21:05:07 (GMT)
commit0113ca6b5e5143ca28be5fc4be0acb3d417d153d (patch)
tree7779a12501596034bed121e69e4425a5935cf51e /src/Window.hh
parent7ace5e80be863a6d9e4170fc76ba157312e890d5 (diff)
downloadfluxbox_pavel-0113ca6b5e5143ca28be5fc4be0acb3d417d153d.zip
fluxbox_pavel-0113ca6b5e5143ca28be5fc4be0acb3d417d153d.tar.bz2
implement some focus policies for splash, dock, and desktop windows
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