polytreewm/settings.h
Alex Kotov 709a30d70b
Allow to disable dynamic fullscreen borders and gaps
When there are some fullscreen windows in monocle layout,
it may be annoying than borders and gaps are changed when you
change focus.
2021-11-16 07:12:31 +05:00

46 lines
1.6 KiB
C

#ifndef _SETTINGS_H
#define _SETTINGS_H
#include <stdbool.h>
typedef enum {
SETTINGS_FOR_SINGLE_WINDOW_NEVER,
SETTINGS_FOR_SINGLE_WINDOW_ALWAYS,
SETTINGS_FOR_SINGLE_WINDOW_NOT_IN_FULLSCREEN,
SETTINGS_FOR_SINGLE_WINDOW_NOBODY_IS_FULLSCREEN,
} SettingsForSingleWindow;
int settings_get_border_width();
void settings_set_border_width(int new_border_width);
int settings_get_default_clients_in_master();
void settings_set_default_clients_in_master(int new_default_clients_in_master);
SettingsForSingleWindow settings_get_border_for_single_window();
void settings_set_border_for_single_window(SettingsForSingleWindow new_border_for_single_window);
SettingsForSingleWindow settings_get_gap_for_single_window();
void settings_set_gap_for_single_window(SettingsForSingleWindow new_gap_for_single_window);
bool settings_get_enable_swallowing();
void settings_set_enable_swallowing(bool new_enable_swallowing);
bool settings_get_focus_on_wheel();
void settings_set_focus_on_wheel(bool new_focus_on_wheel);
int settings_get_gap_size();
void settings_set_gap_size(int new_gap_size);
int settings_get_max_clients_in_master();
void settings_set_max_clients_in_master(int new_max_clients_in_master);
bool settings_get_respect_resize_hints_in_floating_layout();
void settings_set_respect_resize_hints_in_floating_layout(bool new_respect_resize_hints_in_floating_layout);
unsigned int settings_get_snap_distance();
void settings_set_snap_distance(unsigned int new_snap_distance);
bool settings_get_swallow_floating();
void settings_set_swallow_floating(bool new_swallow_floating);
#endif // _SETTINGS_H