mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
Add default_orientation command
This commit is contained in:
parent
2d46050281
commit
69eb021767
5 changed files with 26 additions and 4 deletions
|
|
@ -123,12 +123,11 @@ struct sway_container *container_remove_child(struct sway_container *child) {
|
|||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue