From b9b1b0e5662f8e3dbbfa9bb09dd4f69aac9c2db0 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Sat, 20 Oct 2018 17:51:32 +1000 Subject: Remove raise_floating directive The directive controlled whether floating views should raise to the top when the cursor is moved over it while using focus_follows_mouse. The default was enabled, which is undesirable. For example, if you have two floating views where one completely covers the other, the smaller one would be inaccessible because moving the mouse over the bigger one would raise it above the smaller one. There is no known use case for having raise_floating enabled, so this patch removes the directive and implements the raise_floating disabled behaviour instead. --- sway/commands/raise_floating.c | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 sway/commands/raise_floating.c (limited to 'sway/commands') diff --git a/sway/commands/raise_floating.c b/sway/commands/raise_floating.c deleted file mode 100644 index 930299a1..00000000 --- a/sway/commands/raise_floating.c +++ /dev/null @@ -1,14 +0,0 @@ -#include -#include -#include "sway/commands.h" -#include "util.h" - -struct cmd_results *cmd_raise_floating(int argc, char **argv) { - struct cmd_results *error = NULL; - if ((error = checkarg(argc, "raise_floating", EXPECTED_EQUAL_TO, 1))) { - return error; - } - config->raise_floating = - parse_boolean(argv[0], config->raise_floating); - return cmd_results_new(CMD_SUCCESS, NULL, NULL); -} -- cgit v1.2.3