aboutsummaryrefslogtreecommitdiff
path: root/src/ScreenResource.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2021-07-06 23:56:20 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2021-07-06 23:56:20 (GMT)
commit8bc11006a5ac8c10a539e5a38cdf62205ff386ad (patch)
tree54e3ef1fe6fb25f56d59d9b9e96b4eec6467ef82 /src/ScreenResource.hh
parent0279936d835d7d88537bcf1208035787c02ced59 (diff)
downloadfluxbox-8bc11006a5ac8c10a539e5a38cdf62205ff386ad.zip
fluxbox-8bc11006a5ac8c10a539e5a38cdf62205ff386ad.tar.bz2
Patch from Glen Whitney
A priori, there is no reason why the workspace warping functionality should treat the horizontal and vertical directions at all differently. Even if traditionally horizontal warping was more common, for some in recent times as aspect ratios tend to become larger, stacking virtual workspaces vertically may make more sense. Similarly, some might want to traverse an array of workspaces in column-major, rather than row-major, order. Prior to this commit, there were extra parameters for vertical warping (a controlling flag and an offset for how many workspaces to jump) as opposed to horizontal warping. Also it was impossible to allow vertical warping while disallowing vertical warping. This commit makes all of the parameters and behavior for horizontal and vertical warping equivalent. For backwards compatibility, there is an overarching flag controlling whether warping occurs at all, as well as a separate control flag and offset for each of horizontal and vertical warping. The relevant init file resources and default values are: session.screen0.workspaceWarping: true session.screen0.workspaceWarpingHorizontal: true session.screen0.workspaceWarpingVertical: true session.screen0.workspaceWarpingHorizontalOffset: 1 session.screen0.workspaceWarpingVerticalOffset: 1
Diffstat (limited to 'src/ScreenResource.hh')
-rw-r--r--src/ScreenResource.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ScreenResource.hh b/src/ScreenResource.hh
index 120ecf9..5aac6dd 100644
--- a/src/ScreenResource.hh
+++ b/src/ScreenResource.hh
@@ -38,6 +38,7 @@ struct ScreenResource {
38 max_disable_move, 38 max_disable_move,
39 max_disable_resize, 39 max_disable_resize,
40 workspace_warping, 40 workspace_warping,
41 workspace_warping_horizontal,
41 workspace_warping_vertical, 42 workspace_warping_vertical,
42 show_window_pos, 43 show_window_pos,
43 auto_raise, 44 auto_raise,
@@ -56,7 +57,8 @@ struct ScreenResource {
56 menu_delay, 57 menu_delay,
57 tab_width, 58 tab_width,
58 tooltip_delay, 59 tooltip_delay,
59 workspace_warping_vertical_offset; 60 workspace_warping_horizontal_offset,
61 workspace_warping_vertical_offset;
60 FbTk::Resource<bool> allow_remote_actions; 62 FbTk::Resource<bool> allow_remote_actions;
61 FbTk::Resource<bool> clientmenu_use_pixmap; 63 FbTk::Resource<bool> clientmenu_use_pixmap;
62 FbTk::Resource<bool> tabs_use_pixmap; 64 FbTk::Resource<bool> tabs_use_pixmap;