Skip to content

Commit

Permalink
config: simplify ToggleTitle function
Browse files Browse the repository at this point in the history
Since fvwm3-1.0.3, the new condition `HasTitle` was added which can be
used to make the ToggleTitle simpler.
  • Loading branch information
ThomasAdam committed Jun 5, 2021
1 parent ad16ae2 commit 50db5f0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions default-config/config
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,8 @@ AddToFunc IconManClick
# This function will toggle if fvwm shows the TitleBar.
DestroyFunc ToggleTitle
AddToFunc ToggleTitle
+ I ThisWindow (State 1) WindowStyle Title
+ I TestRc (Match) State 1 False
+ I TestRc (Match) Break
+ I WindowStyle !Title
+ I State 1 True
+ I ThisWindow (HasTitle) WindowStyle !Title
+ I TestRc (NoMatch) WindowStyle Title

# Function: ChangeDesk
#
Expand Down

0 comments on commit 50db5f0

Please sign in to comment.