mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-20 21:38:15 -04:00
Merge pull request #597 from levnikmyskin/main
Support width/height as fractions in window rules. Closes #552
This commit is contained in:
commit
cb99edd266
2 changed files with 10 additions and 6 deletions
|
|
@ -82,8 +82,8 @@ typedef struct {
|
|||
char *monitor;
|
||||
int32_t offsetx;
|
||||
int32_t offsety;
|
||||
int32_t width;
|
||||
int32_t height;
|
||||
float width;
|
||||
float height;
|
||||
int32_t nofocus;
|
||||
int32_t nofadein;
|
||||
int32_t nofadeout;
|
||||
|
|
@ -2180,9 +2180,9 @@ bool parse_option(Config *config, char *key, char *value) {
|
|||
} else if (strcmp(key, "no_force_center") == 0) {
|
||||
rule->no_force_center = atoi(val);
|
||||
} else if (strcmp(key, "width") == 0) {
|
||||
rule->width = atoi(val);
|
||||
rule->width = atof(val);
|
||||
} else if (strcmp(key, "height") == 0) {
|
||||
rule->height = atoi(val);
|
||||
rule->height = atof(val);
|
||||
} else if (strcmp(key, "isnoborder") == 0) {
|
||||
rule->isnoborder = atoi(val);
|
||||
} else if (strcmp(key, "isnoshadow") == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue