f2d29ceb6b
* Extend minimize logic * Removed redundant xwayland minimize logic * minor fixes * Fixed not properly checking if window is ran though XWayland * Added config option with default being off * Set scratchpad_minimize to true by default * Improve config dependant logic * Switch to using enable|disable instead of on|off
19 lines
455 B
C
19 lines
455 B
C
#include <string.h>
|
|
#include "sway/commands.h"
|
|
#include "sway/config.h"
|
|
#include "log.h"
|
|
#include "stringop.h"
|
|
#include "util.h"
|
|
|
|
struct cmd_results *cmd_scratchpad_minimize(int argc, char **argv) {
|
|
struct cmd_results *error = checkarg(argc, "scratchpad_minimize", EXPECTED_AT_LEAST, 1);
|
|
|
|
if (error) {
|
|
return error;
|
|
}
|
|
|
|
config->scratchpad_minimize = parse_boolean(argv[0], config->scratchpad_minimize);
|
|
|
|
return cmd_results_new(CMD_SUCCESS, NULL);
|
|
}
|