diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2021-07-07 13:58:42 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2021-07-07 13:58:42 (GMT) |
commit | 5f3cb410cdda9f94e99f17a60fc0456ca41bf1e0 (patch) | |
tree | 654b5e8062ca705b64e320ba4a0cf78b5d4cabae | |
parent | 8bc11006a5ac8c10a539e5a38cdf62205ff386ad (diff) | |
download | fluxbox-5f3cb410cdda9f94e99f17a60fc0456ca41bf1e0.zip fluxbox-5f3cb410cdda9f94e99f17a60fc0456ca41bf1e0.tar.bz2 |
Patch from Thomas Luebking
Documents Opaque Resizing and adds a fancy config menu item
-rw-r--r-- | doc/asciidoc/fluxbox.txt | 22 | ||||
-rw-r--r-- | doc/fluxbox.1.in | 35 | ||||
-rw-r--r-- | nls/fluxbox-nls.hh | 1 | ||||
-rw-r--r-- | src/ConfigMenu.cc | 4 |
4 files changed, 50 insertions, 12 deletions
diff --git a/doc/asciidoc/fluxbox.txt b/doc/asciidoc/fluxbox.txt index a646a66..c0b1860 100644 --- a/doc/asciidoc/fluxbox.txt +++ b/doc/asciidoc/fluxbox.txt | |||
@@ -414,6 +414,10 @@ titlebars, not window contents. | |||
414 | If enabled, you will see the window content while dragging it. Otherwise | 414 | If enabled, you will see the window content while dragging it. Otherwise |
415 | only an outline of the window will be shown. | 415 | only an outline of the window will be shown. |
416 | 416 | ||
417 | *Opaque Window Resizing*::: | ||
418 | If enabled, you will see the window content while resizing it. Otherwise | ||
419 | only an outline of the window will be shown. | ||
420 | |||
417 | *Workspace Warping*::: | 421 | *Workspace Warping*::: |
418 | If enabled, you can drag windows from one workspace to another. There are | 422 | If enabled, you can drag windows from one workspace to another. There are |
419 | parameters to set independently whether this warping happens horizontally | 423 | parameters to set independently whether this warping happens horizontally |
@@ -1169,6 +1173,24 @@ will only draw an outline of the window border. | |||
1169 | + | 1173 | + |
1170 | Default: *True* | 1174 | Default: *True* |
1171 | 1175 | ||
1176 | *session.screen0.opaqueResize*: 'boolean':: | ||
1177 | When resizing a window, setting this to True will draw the window | ||
1178 | contents as it resizes (this is nasty on slow systems). If False, it | ||
1179 | will only draw an outline of the window border. | ||
1180 | + | ||
1181 | Default: *False* | ||
1182 | |||
1183 | *session.screen0.opaqueResizeDelay*: 'integer':: | ||
1184 | When resizing a window in opaque mode, this controls the resize clock pulse in | ||
1185 | ms. | ||
1186 | Low values resize "smoother" but slow clients (browser etc. which are expensive | ||
1187 | to resize) can put too much stress on the system (stalling everything) | ||
1188 | High values will cause notable latency (delay before the size is aligned to | ||
1189 | the mouse position) | ||
1190 | + | ||
1191 | Default: *40* | ||
1192 | |||
1193 | |||
1172 | *session.screen0.workspaces*: 'integer':: | 1194 | *session.screen0.workspaces*: 'integer':: |
1173 | Set this to the number of workspaces the users wants. | 1195 | Set this to the number of workspaces the users wants. |
1174 | + | 1196 | + |
diff --git a/doc/fluxbox.1.in b/doc/fluxbox.1.in index b86ef41..16924ac 100644 --- a/doc/fluxbox.1.in +++ b/doc/fluxbox.1.in | |||
@@ -1,7 +1,7 @@ | |||
1 | '\" t | 1 | '\" t |
2 | .\" Title: fluxbox | 2 | .\" Title: fluxbox |
3 | .\" Author: Henrik Kinnunen <fluxgen@fluxbox.org> | 3 | .\" Author: Henrik Kinnunen <fluxgen@fluxbox.org> |
4 | .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/> | 4 | .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> |
5 | .\" Date: 08 February 2015 | 5 | .\" Date: 08 February 2015 |
6 | .\" Manual: Fluxbox Manual | 6 | .\" Manual: Fluxbox Manual |
7 | .\" Source: fluxbox.txt | 7 | .\" Source: fluxbox.txt |
@@ -826,14 +826,14 @@ option will force fluxbox to ignore the xcomposite extension and use pseudo\-tra | |||
826 | If enabled, you will see the window content while dragging it\&. Otherwise only an outline of the window will be shown\&. | 826 | If enabled, you will see the window content while dragging it\&. Otherwise only an outline of the window will be shown\&. |
827 | .RE | 827 | .RE |
828 | .PP | 828 | .PP |
829 | \fBOpaque Window Resizing\fR | ||
830 | .RS 4 | ||
831 | If enabled, you will see the window content while resizing it\&. Otherwise only an outline of the window will be shown\&. | ||
832 | .RE | ||
833 | .PP | ||
829 | \fBWorkspace Warping\fR | 834 | \fBWorkspace Warping\fR |
830 | .RS 4 | 835 | .RS 4 |
831 | If enabled, you can drag windows from one workspace to another\&. There are | 836 | If enabled, you can drag windows from one workspace to another\&. There are parameters to set independently whether this warping happens horizontally and/or vertically, and in each direction you can set the number of workspaces to jump when warping (to allow for a virtual rectangular grid of workspaces)\&. When warping, lower\-numbered workspaces are above/to the left, and higher\-numbered workspaces below/to the right\&. |
832 | parameters to set independently whether this warping happens horizontally | ||
833 | and/or vertically, and in each direction you can set the number of workspaces | ||
834 | to jump when warping (to allow for a virtual rectangular grid of | ||
835 | workspaces)\&. When warping, lower-numbered workspaces are above/to the left, and | ||
836 | higher-numbered workspaces below/to the right\&. | ||
837 | .RE | 837 | .RE |
838 | .SS "Window Menu" | 838 | .SS "Window Menu" |
839 | .sp | 839 | .sp |
@@ -1206,11 +1206,6 @@ All icons will be left\-aligned with the width set in the \(oqinit\(cq file | |||
1206 | All icons will be sized evenly to fill the iconbar completely | 1206 | All icons will be sized evenly to fill the iconbar completely |
1207 | .RE | 1207 | .RE |
1208 | .PP | 1208 | .PP |
1209 | \fBRelativeSmart\fR: | ||
1210 | .RS 4 | ||
1211 | All icons will initially be sized evenly, but icons with long titles will be larger | ||
1212 | .RE | ||
1213 | .PP | ||
1214 | \fBRight\fR: | 1209 | \fBRight\fR: |
1215 | .RS 4 | 1210 | .RS 4 |
1216 | All icons will be right\-aligned with the width set in the \(oqinit\(cq file | 1211 | All icons will be right\-aligned with the width set in the \(oqinit\(cq file |
@@ -1934,6 +1929,22 @@ Default: | |||
1934 | \fBTrue\fR | 1929 | \fBTrue\fR |
1935 | .RE | 1930 | .RE |
1936 | .PP | 1931 | .PP |
1932 | \fBsession\&.screen0\&.opaqueResize\fR: \fIboolean\fR | ||
1933 | .RS 4 | ||
1934 | When resizing a window, setting this to True will draw the window contents as it resizes (this is nasty on slow systems)\&. If False, it will only draw an outline of the window border\&. | ||
1935 | .sp | ||
1936 | Default: | ||
1937 | \fBFalse\fR | ||
1938 | .RE | ||
1939 | .PP | ||
1940 | \fBsession\&.screen0\&.opaqueResizeDelay\fR: \fIinteger\fR | ||
1941 | .RS 4 | ||
1942 | When resizing a window in opaque mode, this controls the resize clock pulse in ms\&. Low values resize "smoother" but slow clients (browser etc\&. which are expensive to resize) can put too much stress on the system (stalling everything) High values will cause notable latency (delay before the size is aligned to the mouse position) | ||
1943 | .sp | ||
1944 | Default: | ||
1945 | \fB40\fR | ||
1946 | .RE | ||
1947 | .PP | ||
1937 | \fBsession\&.screen0\&.workspaces\fR: \fIinteger\fR | 1948 | \fBsession\&.screen0\&.workspaces\fR: \fIinteger\fR |
1938 | .RS 4 | 1949 | .RS 4 |
1939 | Set this to the number of workspaces the users wants\&. | 1950 | Set this to the number of workspaces the users wants\&. |
diff --git a/nls/fluxbox-nls.hh b/nls/fluxbox-nls.hh index e614525..39d5084 100644 --- a/nls/fluxbox-nls.hh +++ b/nls/fluxbox-nls.hh | |||
@@ -89,6 +89,7 @@ enum { | |||
89 | ConfigmenuMaxDisableResize = 29, | 89 | ConfigmenuMaxDisableResize = 29, |
90 | ConfigmenuStrictMouseFocus = 30, | 90 | ConfigmenuStrictMouseFocus = 30, |
91 | ConfigmenuFocusSameHead = 31, | 91 | ConfigmenuFocusSameHead = 31, |
92 | ConfigmenuOpaqueResize = 32, | ||
92 | 93 | ||
93 | EwmhSet = 5, | 94 | EwmhSet = 5, |
94 | EwmhOutOfMemoryClientList = 1, | 95 | EwmhOutOfMemoryClientList = 1, |
diff --git a/src/ConfigMenu.cc b/src/ConfigMenu.cc index 58bd5b4..592adee 100644 --- a/src/ConfigMenu.cc +++ b/src/ConfigMenu.cc | |||
@@ -336,6 +336,10 @@ void ConfigMenu::setup(FbTk::Menu& menu, ConfigMenu::SetupHelper& sh) { | |||
336 | "Opaque Window Moving", | 336 | "Opaque Window Moving", |
337 | "Window Moving with whole window visible (as opposed to outline moving)", | 337 | "Window Moving with whole window visible (as opposed to outline moving)", |
338 | sh.resource.opaque_move, saverc_cmd); | 338 | sh.resource.opaque_move, saverc_cmd); |
339 | _BOOLITEM(menu, Configmenu, OpaqueResize, | ||
340 | "Opaque Window Resizing", | ||
341 | "Window Resizing with whole window visible (as opposed to outline resizing)", | ||
342 | sh.resource.opaque_resize, saverc_cmd); | ||
339 | _BOOLITEM(menu, Configmenu, WorkspaceWarping, | 343 | _BOOLITEM(menu, Configmenu, WorkspaceWarping, |
340 | "Workspace Warping", | 344 | "Workspace Warping", |
341 | "Workspace Warping - dragging windows to the edge and onto the next workspace", | 345 | "Workspace Warping - dragging windows to the edge and onto the next workspace", |