From: Michael Stapelberg Date: Wed, 3 Aug 2011 18:47:29 +0000 (+0200) Subject: docs/userguide: the correct command is 'floating enable', not 'mode floating' (Thanks... X-Git-Tag: 4.0.2~61^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=92481b133c0d0f22d6077e581d7bdd836eb4bf2e;p=i3%2Fi3 docs/userguide: the correct command is 'floating enable', not 'mode floating' (Thanks Sander) Fixes: #453 --- diff --git a/docs/userguide b/docs/userguide index e7a0459b..a384f6c2 100644 --- a/docs/userguide +++ b/docs/userguide @@ -437,7 +437,7 @@ for_window [criteria] command *Examples*: ------------------------------------------------ # enable floating mode for all XTerm windows -for_window [class="XTerm"] mode floating +for_window [class="XTerm"] floating enable # Make all urxvts use a 1-pixel border: for_window [class="urxvt"] border 1pixel @@ -445,7 +445,7 @@ for_window [class="urxvt"] border 1pixel # A less useful, but rather funny example: # makes the window floating as soon as I change # directory to ~/work -for_window [title="x200: ~/work"] mode floating +for_window [title="x200: ~/work"] floating enable ------------------------------------------------ === Variables diff --git a/src/cfgparse.y b/src/cfgparse.y index 53b08cda..06d9c664 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -991,7 +991,7 @@ assign: /* Compatibility with older versions: If the assignment target starts * with ~, we create the equivalent of: * - * for_window [class="foo"] mode floating + * for_window [class="foo"] floating enable */ if (*workspace == '~') { workspace++;