diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-08-21 15:30:49 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2020-08-21 15:30:49 -0400 |
commit | acdd54fe1911ad7fe8dfc107cb7794ec9e8aa798 (patch) | |
tree | 18bdfda0a3a0e76246eb989317037fead4a44b1e /x.c | |
parent | de6fd85eeb544548ed5ad23a639eedd6af510036 (diff) | |
parent | 80c6f5c5f0dad7e7c41c3376006290a2b0b319be (diff) |
Merge branch 'master' of gitlab.com:LukeSmithxyz/st into master
Diffstat (limited to 'x.c')
-rw-r--r-- | x.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -68,6 +68,7 @@ static void clipcopy(const Arg *); static void clippaste(const Arg *); static void numlock(const Arg *); static void selpaste(const Arg *); +static void changealpha(const Arg *); static void zoom(const Arg *); static void zoomabs(const Arg *); static void zoomreset(const Arg *); @@ -304,6 +305,20 @@ numlock(const Arg *dummy) } void +changealpha(const Arg *arg) +{ + if((alpha > 0 && arg->f < 0) || (alpha < 1 && arg->f > 0)) + alpha += arg->f; + if(alpha < 0) + alpha = 0; + if(alpha > 1) + alpha = 1; + + xloadcols(); + redraw(); +} + +void zoom(const Arg *arg) { Arg larg; |