warning cleanup with gcc and battery fix
This commit is contained in:
parent
8b0564a707
commit
87663a7609
|
@ -37,7 +37,7 @@ CLICK() {
|
||||||
# get icon
|
# get icon
|
||||||
GETICON() {
|
GETICON() {
|
||||||
[ "$BATTERYPERC_0" -gt "99" ] && ICON="$ITEM11_ICON_FULL"
|
[ "$BATTERYPERC_0" -gt "99" ] && ICON="$ITEM11_ICON_FULL"
|
||||||
[ "$BATTERYPERC_0" -lt "76" ] && ICON="$ITEM11_ICON_75"
|
[ "$BATTERYPERC_0" -lt "100" ] && ICON="$ITEM11_ICON_75"
|
||||||
[ "$BATTERYPERC_0" -lt "51" ] && ICON="$ITEM11_ICON_50"
|
[ "$BATTERYPERC_0" -lt "51" ] && ICON="$ITEM11_ICON_50"
|
||||||
[ "$BATTERYPERC_0" -lt "26" ] && ICON="$ITEM11_ICON_25"
|
[ "$BATTERYPERC_0" -lt "26" ] && ICON="$ITEM11_ICON_25"
|
||||||
[ "$BATTERYPERC_0" -lt "6" ] && ICON="$ITEM11_ICON_5"
|
[ "$BATTERYPERC_0" -lt "6" ] && ICON="$ITEM11_ICON_5"
|
||||||
|
|
|
@ -61,7 +61,7 @@ static int automove = 1; /* Allow clients to automatic
|
||||||
static int autoresize = 1; /* Allow resizing clients automatically when they request it. */
|
static int autoresize = 1; /* Allow resizing clients automatically when they request it. */
|
||||||
|
|
||||||
/* Font options */
|
/* Font options */
|
||||||
static char font[] = "Noto Sans Regular 8"; /* Font to draw the bar with */
|
static char font[] = "Noto Sans Regular 9"; /* Font to draw the bar with */
|
||||||
|
|
||||||
/* Status options */
|
/* Status options */
|
||||||
static char defaultstatus[] = ""; /* What to print when a status bar is not running */
|
static char defaultstatus[] = ""; /* What to print when a status bar is not running */
|
||||||
|
|
12
speedwm.c
12
speedwm.c
|
@ -1,5 +1,3 @@
|
||||||
/* See LICENSE file for copyright and license details. */
|
|
||||||
#include <assert.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -2334,6 +2332,7 @@ dragmfact(const Arg *arg)
|
||||||
unsigned int n;
|
unsigned int n;
|
||||||
int py, px;
|
int py, px;
|
||||||
int ax, ay, aw, ah;
|
int ax, ay, aw, ah;
|
||||||
|
int layout = 0;
|
||||||
int center = 0, horizontal = 0, mirror = 0, fixed = 0;
|
int center = 0, horizontal = 0, mirror = 0, fixed = 0;
|
||||||
double fact;
|
double fact;
|
||||||
Monitor *m;
|
Monitor *m;
|
||||||
|
@ -2353,7 +2352,7 @@ dragmfact(const Arg *arg)
|
||||||
if (!n)
|
if (!n)
|
||||||
return;
|
return;
|
||||||
else if (m->lt[m->sellt]->arrange == &tile) {
|
else if (m->lt[m->sellt]->arrange == &tile) {
|
||||||
int layout = m->ltaxis[layout];
|
layout = m->ltaxis[layout];
|
||||||
if (layout < 0) {
|
if (layout < 0) {
|
||||||
mirror = 1;
|
mirror = 1;
|
||||||
layout *= -1;
|
layout *= -1;
|
||||||
|
@ -2488,13 +2487,13 @@ dragmfact(const Arg *arg)
|
||||||
void
|
void
|
||||||
drawbaritems(Monitor *m)
|
drawbaritems(Monitor *m)
|
||||||
{
|
{
|
||||||
int x = 0, w = 0, tw = 0, scm;
|
int x = 0, w = 0, tw = 0, scm = 0;
|
||||||
int stw = 0; /* systray width */
|
int stw = 0; /* systray width */
|
||||||
int plt = 0; /* powerline title */
|
int plt = 0; /* powerline title */
|
||||||
unsigned int i, occ = 0, urg = 0, n = 0;
|
unsigned int i, occ = 0, urg = 0, n = 0;
|
||||||
|
|
||||||
/* powerline */
|
/* powerline */
|
||||||
Clr *prevscheme, *nxtscheme; /* powerline schemes */
|
Clr *prevscheme, *nxtscheme = scheme[SchemeBar]; /* powerline schemes */
|
||||||
|
|
||||||
if (!selmon->hidetagpowerline || !selmon->hidetitlepowerline) {
|
if (!selmon->hidetagpowerline || !selmon->hidetitlepowerline) {
|
||||||
plw = drw->font->h / 2 + 1;
|
plw = drw->font->h / 2 + 1;
|
||||||
|
@ -6499,8 +6498,9 @@ unmanage(Client *c, int destroyed)
|
||||||
Monitor *m = c->mon;
|
Monitor *m = c->mon;
|
||||||
XWindowChanges wc;
|
XWindowChanges wc;
|
||||||
|
|
||||||
if (c == mark)
|
if (c == mark) {
|
||||||
setmark(0);
|
setmark(0);
|
||||||
|
}
|
||||||
|
|
||||||
if (c->swallowing) {
|
if (c->swallowing) {
|
||||||
unswallow(c);
|
unswallow(c);
|
||||||
|
|
Loading…
Reference in a new issue