aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.hh
diff options
context:
space:
mode:
authorakir <akir>2004-10-16 22:18:56 (GMT)
committerakir <akir>2004-10-16 22:18:56 (GMT)
commita6d4a3563c524e5fd6ee9ca18c0f5126a493108d (patch)
tree59043dd9b8cab59c427a92d070f1e82eeda5b55c /src/Screen.hh
parent9fbf1ab395ec8253cf942e04145501b11a6e35f5 (diff)
downloadfluxbox_pavel-a6d4a3563c524e5fd6ee9ca18c0f5126a493108d.zip
fluxbox_pavel-a6d4a3563c524e5fd6ee9ca18c0f5126a493108d.tar.bz2
added followModel Ressources, dunno if the name is so clever, i am open for other suggestions
Diffstat (limited to 'src/Screen.hh')
-rw-r--r--src/Screen.hh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Screen.hh b/src/Screen.hh
index 039f9f3..4788fff 100644
--- a/src/Screen.hh
+++ b/src/Screen.hh
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Screen.hh,v 1.147 2004/09/16 10:10:37 fluxgen Exp $ 25// $Id: Screen.hh,v 1.148 2004/10/16 22:18:56 akir Exp $
26 26
27#ifndef SCREEN_HH 27#ifndef SCREEN_HH
28#define SCREEN_HH 28#define SCREEN_HH
@@ -78,6 +78,11 @@ class Subject;
78class BScreen : public FbTk::Observer, private FbTk::NotCopyable { 78class BScreen : public FbTk::Observer, private FbTk::NotCopyable {
79public: 79public:
80 enum FocusModel { SLOPPYFOCUS=0, SEMISLOPPYFOCUS, CLICKTOFOCUS }; 80 enum FocusModel { SLOPPYFOCUS=0, SEMISLOPPYFOCUS, CLICKTOFOCUS };
81 enum FollowModel { ///< a window becomes active / focussed on a different workspace
82 IGNORE_OTHER_WORKSPACES = 0, ///< who cares?
83 FOLLOW_ACTIVE_WINDOW, ///< go to that workspace
84 FETCH_ACTIVE_WINDOW ///< put that window to the current workspace
85 };
81 enum FocusDir { FOCUSUP, FOCUSDOWN, FOCUSLEFT, FOCUSRIGHT }; 86 enum FocusDir { FOCUSUP, FOCUSDOWN, FOCUSLEFT, FOCUSRIGHT };
82 enum PlacementPolicy { ROWSMARTPLACEMENT, COLSMARTPLACEMENT, 87 enum PlacementPolicy { ROWSMARTPLACEMENT, COLSMARTPLACEMENT,
83 CASCADEPLACEMENT, UNDERMOUSEPLACEMENT}; 88 CASCADEPLACEMENT, UNDERMOUSEPLACEMENT};
@@ -125,6 +130,7 @@ public:
125 inline const std::string &getRootCommand() const { return *resource.rootcommand; } 130 inline const std::string &getRootCommand() const { return *resource.rootcommand; }
126 inline const std::string &getResizeMode() const { return *resource.resizemode; } 131 inline const std::string &getResizeMode() const { return *resource.resizemode; }
127 inline FocusModel getFocusModel() const { return *resource.focus_model; } 132 inline FocusModel getFocusModel() const { return *resource.focus_model; }
133 inline FollowModel getFollowModel() const { return *resource.follow_model; }
128 134
129 inline Slit *slit() { return m_slit.get(); } 135 inline Slit *slit() { return m_slit.get(); }
130 inline const Slit *slit() const { return m_slit.get(); } 136 inline const Slit *slit() const { return m_slit.get(); }
@@ -434,6 +440,7 @@ private:
434 FbTk::Resource<std::string> resizemode; 440 FbTk::Resource<std::string> resizemode;
435 FbTk::Resource<std::string> windowmenufile; 441 FbTk::Resource<std::string> windowmenufile;
436 FbTk::Resource<FocusModel> focus_model; 442 FbTk::Resource<FocusModel> focus_model;
443 FbTk::Resource<FollowModel> follow_model;
437 bool ordered_dither; 444 bool ordered_dither;
438 FbTk::Resource<int> workspaces, edge_snap_threshold, focused_alpha, 445 FbTk::Resource<int> workspaces, edge_snap_threshold, focused_alpha,
439 unfocused_alpha, menu_alpha, menu_delay, menu_delay_close; 446 unfocused_alpha, menu_alpha, menu_delay, menu_delay_close;