4976fa3350
Previously, in case 'layout stacked' (for example) had been called interactively, con_set_layout would be called with focused->parent, while with for_window, it’d be called on the actual matching container. This difference in behavior was the cause for the inability to use 'for_window [class="XTerm"] layout tabbed', which now works \o/, but more on that below. The change also allows us to handle the case of the user selecting a CT_WORKSPACE container properly, that is, by using the special case and creating a new split container on the workspace which gets all the contents, but a new layout. Now, before you are enthusiastic about the change and try to use for_window magic in your config file, keep in mind: The 'layout' command acts on the parent split container. That is, when using a line such as this one: for_window [class="XTerm"] layout tabbed …and opening an XTerm when on a workspace with one single other window, the whole workspace will be set tabbed (just as previously when you opened an XTerm and sent 'layout tabbed' manually). Therefore, to open XTerm in its own tabbed split container, you need to split before: for_window [class="XTerm"] split v, layout tabbed The comma here is important! It says that the second command should not be treated as an entirely unrelated command, but it should also relate the matching window (while it does work with a ';', that is prone to race-conditions and should be avoided). fixes #358 |
||
---|---|---|
contrib | ||
debian | ||
docs | ||
i3-config-wizard | ||
i3-dump-log | ||
i3-input | ||
i3-msg | ||
i3-nagbar | ||
i3bar | ||
include | ||
libi3 | ||
man | ||
parser-specs | ||
src | ||
testcases | ||
tests | ||
yajl-fallback/yajl | ||
.gitignore | ||
common.mk | ||
DEPENDS | ||
generate-command-parser.pl | ||
i3-migrate-config-to-v4 | ||
i3-sensible-editor | ||
i3-sensible-pager | ||
i3-sensible-terminal | ||
i3.applications.desktop | ||
i3.config | ||
i3.config.keycodes | ||
i3.xsession.desktop | ||
LICENSE | ||
logo.svg | ||
Makefile | ||
PACKAGE-MAINTAINER | ||
pseudo-doc.doxygen | ||
RELEASE-NOTES-4.2 | ||
RELEASE-NOTES-4.3 |