mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-05 04:06:28 -05:00
feat: add windowrule option isnoradius
This commit is contained in:
parent
df0e18481b
commit
471c71f65c
3 changed files with 11 additions and 2 deletions
|
|
@ -240,8 +240,9 @@ void buffer_set_effect(Client *c, BufferData data) {
|
|||
if (c == grabc)
|
||||
data.should_scale = false;
|
||||
|
||||
if (c->isfullscreen || (no_radius_when_single && c->mon &&
|
||||
c->mon->visible_tiling_clients == 1)) {
|
||||
if (c->isnoradius || c->isfullscreen ||
|
||||
(no_radius_when_single && c->mon &&
|
||||
c->mon->visible_tiling_clients == 1)) {
|
||||
data.corner_location = CORNER_LOCATION_NONE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ typedef struct {
|
|||
const char *layer_animation_type_close;
|
||||
int isnoborder;
|
||||
int isnoshadow;
|
||||
int isnoradius;
|
||||
int isnoanimation;
|
||||
int isopensilent;
|
||||
int istagsilent;
|
||||
|
|
@ -1705,6 +1706,7 @@ void parse_option(Config *config, char *key, char *value) {
|
|||
rule->isfullscreen = -1;
|
||||
rule->isnoborder = -1;
|
||||
rule->isnoshadow = -1;
|
||||
rule->isnoradius = -1;
|
||||
rule->isnoanimation = -1;
|
||||
rule->isopensilent = -1;
|
||||
rule->istagsilent = -1;
|
||||
|
|
@ -1794,6 +1796,8 @@ void parse_option(Config *config, char *key, char *value) {
|
|||
rule->isnoborder = atoi(val);
|
||||
} else if (strcmp(key, "isnoshadow") == 0) {
|
||||
rule->isnoshadow = atoi(val);
|
||||
} else if (strcmp(key, "isnoradius") == 0) {
|
||||
rule->isnoradius = atoi(val);
|
||||
} else if (strcmp(key, "isnoanimation") == 0) {
|
||||
rule->isnoanimation = atoi(val);
|
||||
} else if (strcmp(key, "isopensilent") == 0) {
|
||||
|
|
|
|||
|
|
@ -364,6 +364,7 @@ struct Client {
|
|||
int isglobal;
|
||||
int isnoborder;
|
||||
int isnoshadow;
|
||||
int isnoradius;
|
||||
int isnoanimation;
|
||||
int isopensilent;
|
||||
int istagsilent;
|
||||
|
|
@ -1214,6 +1215,7 @@ static void apply_rule_properties(Client *c, const ConfigWinRule *r) {
|
|||
APPLY_INT_PROP(c, r, isfullscreen);
|
||||
APPLY_INT_PROP(c, r, isnoborder);
|
||||
APPLY_INT_PROP(c, r, isnoshadow);
|
||||
APPLY_INT_PROP(c, r, isnoradius);
|
||||
APPLY_INT_PROP(c, r, isnoanimation);
|
||||
APPLY_INT_PROP(c, r, isopensilent);
|
||||
APPLY_INT_PROP(c, r, istagsilent);
|
||||
|
|
@ -3721,6 +3723,8 @@ void init_client_properties(Client *c) {
|
|||
c->no_force_center = 0;
|
||||
c->isnoborder = 0;
|
||||
c->isnosizehint = 0;
|
||||
c->isnoradius = 0;
|
||||
c->isnoshadow = 0;
|
||||
c->ignore_maximize = 1;
|
||||
c->ignore_minimize = 1;
|
||||
c->iscustomsize = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue