diff options
author | Mark Murawski <markm@intellasoft.net> | 2017-11-19 18:37:37 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2017-11-19 19:10:26 (GMT) |
commit | 7cb7bfaa448003466315ccc21d08b71f5c77df70 (patch) | |
tree | 2181cef0a2ec814c9e944502ca0d02ed4c926c48 /src/Screen.hh | |
parent | 0090dc8a6ba4b5c360ecda470b316e630b85c30c (diff) | |
download | fluxbox-7cb7bfaa448003466315ccc21d08b71f5c77df70.zip fluxbox-7cb7bfaa448003466315ccc21d08b71f5c77df70.tar.bz2 |
Support 'vertical' Workspace warping
'Vertical' Workspace warping is a variant of the existing Workspace
warping feature: When a user drags a window to the edge of the Screen,
the window is warped to the next / previous workspace.
'Vertical' Workspace warping detects a drag towards the upper / lower
border of the screen and warps the current workspace about an 'offset'.
Example given, lets say the user has 9 workspaces and considers them to
form a 3x3 grid:
+-+-+-+
|1|2|3|
+-+-+-+
|4|5|6|
+-+-+-+
|7|8|9|
+-+-+-+
An 'offset' of 3 warps from workspaces 2 to workspace 5 (or 8), when a
window is dragged to the bottom / top border.
New configuration ressources:
session.screenN.workspacewarpingvertical: true
session.screenN.workspacewarpingverticaloffset: X
Diffstat (limited to 'src/Screen.hh')
-rw-r--r-- | src/Screen.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Screen.hh b/src/Screen.hh index 30fbb4a..15eb349 100644 --- a/src/Screen.hh +++ b/src/Screen.hh | |||
@@ -95,6 +95,8 @@ public: | |||
95 | bool isRootColormapInstalled() const { return root_colormap_installed; } | 95 | bool isRootColormapInstalled() const { return root_colormap_installed; } |
96 | bool isScreenManaged() const { return m_state.managed; } | 96 | bool isScreenManaged() const { return m_state.managed; } |
97 | bool isWorkspaceWarping() const { return (m_workspaces_list.size() > 1) && *resource.workspace_warping; } | 97 | bool isWorkspaceWarping() const { return (m_workspaces_list.size() > 1) && *resource.workspace_warping; } |
98 | bool isWorkspaceWarpingVertical() const { return *resource.workspace_warping_vertical; } | ||
99 | int getWorkspaceWarpingVerticalOffset() const { return *resource.workspace_warping_vertical_offset; } | ||
98 | bool doAutoRaise() const { return *resource.auto_raise; } | 100 | bool doAutoRaise() const { return *resource.auto_raise; } |
99 | bool clickRaises() const { return *resource.click_raises; } | 101 | bool clickRaises() const { return *resource.click_raises; } |
100 | bool doOpaqueMove() const { return *resource.opaque_move; } | 102 | bool doOpaqueMove() const { return *resource.opaque_move; } |