polytreewm/settings.c

37 lines
873 B
C
Raw Normal View History

2021-11-13 16:31:28 +00:00
#include "settings.h"
static bool focus_on_wheel = true;
static bool respect_resize_hints_in_floating_layout = false;
static unsigned int snap_distance = 32;
2021-11-13 16:31:28 +00:00
bool settings_get_focus_on_wheel()
{
return focus_on_wheel;
}
void settings_set_focus_on_wheel(const bool new_focus_on_wheel)
{
focus_on_wheel = new_focus_on_wheel;
}
bool settings_get_respect_resize_hints_in_floating_layout()
{
return respect_resize_hints_in_floating_layout;
}
void settings_set_respect_resize_hints_in_floating_layout(const bool new_respect_resize_hints_in_floating_layout)
{
respect_resize_hints_in_floating_layout = new_respect_resize_hints_in_floating_layout;
2021-11-13 18:02:26 +00:00
// TODO: notify WM to rearrange clients
}
unsigned int settings_get_snap_distance()
{
return snap_distance;
}
void settings_set_snap_distance(const unsigned int new_snap_distance)
{
snap_distance = new_snap_distance;
}