mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-05 07:15:49 -04:00
Added config.xxx implementations for animations.
updated main function in config to use config.xxx instead of global presets updated layout functions to take in new config defaults instead of globals updated dispatch and ext-protocol as well to represent config defaults instead of globals updated fetch/client.h to represent config.xxx instead of globals updated ternarys to fall back to config.xxx instead of globals, also updated if statements and various selmon values to use config.xxx instead of globals. fix: miss apply xkb rules format code
This commit is contained in:
parent
1fc89d01eb
commit
70c36ab699
13 changed files with 824 additions and 996 deletions
|
|
@ -60,7 +60,7 @@ void handle_tearing_new_object(struct wl_listener *listener, void *data) {
|
|||
|
||||
bool check_tearing_frame_allow(Monitor *m) {
|
||||
/* never allow tearing when disabled */
|
||||
if (!allow_tearing) {
|
||||
if (!config.allow_tearing) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ bool check_tearing_frame_allow(Monitor *m) {
|
|||
}
|
||||
|
||||
/* allow tearing for any window when requested or forced */
|
||||
if (allow_tearing == TEARING_ENABLED) {
|
||||
if (config.allow_tearing == TEARING_ENABLED) {
|
||||
if (c->force_tearing == STATE_UNSPECIFIED) {
|
||||
return c->tearing_hint;
|
||||
} else {
|
||||
|
|
@ -87,7 +87,8 @@ bool check_tearing_frame_allow(Monitor *m) {
|
|||
|
||||
if (c->force_tearing == STATE_UNSPECIFIED) {
|
||||
/* honor the tearing hint or the fullscreen-force preference */
|
||||
return c->tearing_hint || allow_tearing == TEARING_FULLSCREEN_ONLY;
|
||||
return c->tearing_hint ||
|
||||
config.allow_tearing == TEARING_FULLSCREEN_ONLY;
|
||||
}
|
||||
|
||||
/* honor tearing as requested by action */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue