Skip to content

Commit

Permalink
#1423 fix heuristic for split auto
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Sep 22, 2022
1 parent b727eee commit a53929f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static inline enum window_node_split window_node_get_split(struct window_node *n
{
if (node->split != SPLIT_NONE) return node->split;
if (g_space_manager.split_type != SPLIT_AUTO) return g_space_manager.split_type;
return node->area.w / node->area.h >= 1.618f ? SPLIT_Y : SPLIT_X;
return node->area.w >= node->area.h ? SPLIT_Y : SPLIT_X;
}

static inline float window_node_get_ratio(struct window_node *node)
Expand Down

0 comments on commit a53929f

Please sign in to comment.