Revert removal of raise_floating directive

This reverts commit b9b1b0e566 and
therefore pull request #2888. The reason being that with some panels
that list windows (such as wf-panel), focusing on a window won't raise
it up front, which is weird.

This pull request also sets the default value for raise_floating to
false, however, to not break existing set ups that expect the old
behavior.
This commit is contained in:
diamondburned 2020-12-24 19:32:15 -08:00
parent d1c4ed1867
commit ddb86d7913
8 changed files with 29 additions and 0 deletions

View file

@ -131,6 +131,7 @@ sway_cmd cmd_floating_modifier;
sway_cmd cmd_floating_scroll;
sway_cmd cmd_focus;
sway_cmd cmd_focus_follows_mouse;
sway_cmd cmd_raise_floating;
sway_cmd cmd_focus_on_window_activation;
sway_cmd cmd_focus_wrapping;
sway_cmd cmd_font;

View file

@ -500,6 +500,7 @@ struct sway_config {
enum focus_follows_mouse_mode focus_follows_mouse;
enum mouse_warping_mode mouse_warping;
enum focus_wrapping_mode focus_wrapping;
bool raise_floating;
bool active;
bool failed;
bool reloading;