Skip to content

Commit

Permalink
Add new maximized_unfocus and fullscreen_unfocus options.
Browse files Browse the repository at this point in the history
Configure focus-loss handling of maximized/fullscreen windows.

Possible values:
  none - leave window maximized/fullscreen.
  restore - unmaximize/exit fullscreen.
  iconify - iconify/hide the window.
  float - unmaximize/exit fullscreen and float window.

Default values:
  fullscreen_unfocus = none
  maximized_unfocus = restore

Resolves #123 and resolves #481
  • Loading branch information
LordReg authored and marcopeereboom committed Oct 20, 2023
1 parent 77a596b commit e7c6745
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 52 deletions.
34 changes: 34 additions & 0 deletions spectrwm.1
Expand Up @@ -523,6 +523,23 @@ Set window focus on window interaction only.
When a fullscreen window is focused, hide unrelated windows on the workspace.
Useful for transparent windows.
Defaults to 0.
.It Ic fullscreen_unfocus
Set handling when a fullscreen window loses focus.
Possible values:
.Pp
.Bl -tag -width "default" -offset indent -compact
.It Ar none
Leave window fullscreen.
(default)
.It Ar restore
Exit fullscreen.
.It Ar iconify
Minimize/hide the window.
.It Ar float
Exit fullscreen and float window.
.El
.Pp
Note that this option is ignored in max layout.
.It Ic iconic_enabled
Display the number of iconic (minimized) windows in the status bar.
Enable by setting to 1.
Expand Down Expand Up @@ -583,6 +600,23 @@ Defaults to 0.
When a maximized window is focused, hide unrelated windows on the workspace.
Useful for transparent windows.
Defaults to 0.
.It Ic maximized_unfocus
Set handling when a maximized window loses focus.
Possible values:
.Pp
.Bl -tag -width "default" -offset indent -compact
.It Ar none
Leave window maximized.
.It Ar restore
Unmaximize window.
(default)
.It Ar iconify
Minimize/hide the window.
.It Ar float
Unmaximize and float window.
.El
.Pp
Note that this option is ignored in max layout.
.It Ic modkey
Change the current modifier value of
.Ic MOD
Expand Down

0 comments on commit e7c6745

Please sign in to comment.