Merge pull request #1659 from swaywm/default-orientation

Add default_orientation command
This commit is contained in:
emersion 2018-03-30 11:49:45 -04:00 committed by GitHub
commit 1592543fd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 4 deletions

View file

@ -160,12 +160,11 @@ void container_move_to(struct sway_container* container,
enum sway_container_layout container_get_default_layout(
struct sway_container *output) {
/* TODO WLR
if (config->default_layout != L_NONE) {
//return config->default_layout;
return config->default_layout;
} else if (config->default_orientation != L_NONE) {
return config->default_orientation;
} else */if (output->width >= output->height) {
} else if (output->width >= output->height) {
return L_HORIZ;
} else {
return L_VERT;