mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
cvsimport
This commit is contained in:
commit
b387351df1
4
client.c
4
client.c
@ -408,7 +408,7 @@ client_config(struct client_ctx *cc)
|
|||||||
{
|
{
|
||||||
XConfigureEvent cn;
|
XConfigureEvent cn;
|
||||||
|
|
||||||
bzero(&cn, sizeof(cn));
|
(void)memset(&cn, 0, sizeof(cn));
|
||||||
cn.type = ConfigureNotify;
|
cn.type = ConfigureNotify;
|
||||||
cn.event = cc->win;
|
cn.event = cc->win;
|
||||||
cn.window = cc->win;
|
cn.window = cc->win;
|
||||||
@ -547,7 +547,7 @@ client_msg(struct client_ctx *cc, Atom proto, Time ts)
|
|||||||
{
|
{
|
||||||
XClientMessageEvent cm;
|
XClientMessageEvent cm;
|
||||||
|
|
||||||
bzero(&cm, sizeof(cm));
|
(void)memset(&cm, 0, sizeof(cm));
|
||||||
cm.type = ClientMessage;
|
cm.type = ClientMessage;
|
||||||
cm.window = cc->win;
|
cm.window = cc->win;
|
||||||
cm.message_type = cwmh[WM_PROTOCOLS];
|
cm.message_type = cwmh[WM_PROTOCOLS];
|
||||||
|
2
conf.c
2
conf.c
@ -226,7 +226,7 @@ conf_init(struct conf *c)
|
|||||||
{
|
{
|
||||||
u_int i;
|
u_int i;
|
||||||
|
|
||||||
bzero(c, sizeof(*c));
|
(void)memset(c, 0, sizeof(*c));
|
||||||
|
|
||||||
c->bwidth = CONF_BWIDTH;
|
c->bwidth = CONF_BWIDTH;
|
||||||
c->mamount = CONF_MAMOUNT;
|
c->mamount = CONF_MAMOUNT;
|
||||||
|
2
menu.c
2
menu.c
@ -92,7 +92,7 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, char *prompt,
|
|||||||
|
|
||||||
TAILQ_INIT(&resultq);
|
TAILQ_INIT(&resultq);
|
||||||
|
|
||||||
bzero(&mc, sizeof(mc));
|
(void)memset(&mc, 0, sizeof(mc));
|
||||||
|
|
||||||
xu_ptr_getpos(sc->rootwin, &mc.x, &mc.y);
|
xu_ptr_getpos(sc->rootwin, &mc.x, &mc.y);
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
2
xutil.c
2
xutil.c
@ -311,7 +311,7 @@ xu_ewmh_get_net_wm_state(struct client_ctx *cc, int *n)
|
|||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
||||||
state = xcalloc(*n, sizeof(Atom));
|
state = xcalloc(*n, sizeof(Atom));
|
||||||
memcpy(state, p, *n * sizeof(Atom));
|
(void)memcpy(state, p, *n * sizeof(Atom));
|
||||||
XFree((char *)p);
|
XFree((char *)p);
|
||||||
|
|
||||||
return (state);
|
return (state);
|
||||||
|
Loading…
Reference in New Issue
Block a user