sync with OpenBSD -current
This commit is contained in:
parent
deeab190c1
commit
3c98303280
10 changed files with 24 additions and 13 deletions
0
app/xlockmore/etc/xlockmore.desktop
Executable file → Normal file
0
app/xlockmore/etc/xlockmore.desktop
Executable file → Normal file
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: privsep.c,v 1.2 2022/07/07 05:00:19 semarie Exp $ */
|
||||
/* $OpenBSD: privsep.c,v 1.3 2023/12/14 09:44:15 claudio Exp $ */
|
||||
/*
|
||||
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
|
||||
* All rights reserved.
|
||||
|
@ -178,7 +178,7 @@ receive_cmd(struct imsgbuf *ibuf, char **name, char **pass, char **style)
|
|||
goto nomem;
|
||||
data += hdr.passlen;
|
||||
if (hdr.stylelen != 0) {
|
||||
*style = strndup(data, hdr.passlen);
|
||||
*style = strndup(data, hdr.stylelen);
|
||||
if (*style == NULL)
|
||||
goto nomem;
|
||||
} else
|
||||
|
|
|
@ -2659,7 +2659,7 @@ getPassword(void)
|
|||
#endif
|
||||
/* clear plaintext password so you can not grunge around
|
||||
/dev/kmem */
|
||||
(void) memset((char *) buffer, 0, sizeof (buffer));
|
||||
explicit_bzero(buffer, sizeof (buffer));
|
||||
|
||||
if (done) {
|
||||
#ifdef USE_SOUND
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $OpenBSD: Makefile,v 1.37 2021/10/31 18:38:43 matthieu Exp $
|
||||
# $OpenBSD: Makefile,v 1.38 2023/12/19 20:31:21 millert Exp $
|
||||
.include <bsd.xconf.mk>
|
||||
|
||||
SUBDIR= icons resize
|
||||
|
@ -67,7 +67,7 @@ PATCH_YMD != sed -n '/XTERM_DATE/s,[^0-9/.-]*,,gp' ${.CURDIR}/version.h
|
|||
-e 's%__app_version__%Patch\ \#'$(PATCH_NUM)% \
|
||||
-e 's%__app_date__%'${PATCH_YMD}% \
|
||||
-e s%__default_termname__%xterm% \
|
||||
-e s%__default_termid__%vt100% \
|
||||
-e s%__default_termid__%100% \
|
||||
-e s%__alt_sends_esc__%false% \
|
||||
-e s%__meta_sends_esc__%false% \
|
||||
-e s%__backarrow_is_bs__%true% \
|
||||
|
|
0
app/xterm/uxterm.desktop
Executable file → Normal file
0
app/xterm/uxterm.desktop
Executable file → Normal file
0
app/xterm/xterm.desktop
Executable file → Normal file
0
app/xterm/xterm.desktop
Executable file → Normal file
|
@ -611,13 +611,13 @@ DeepCopyPointerClasses(DeviceIntPtr from, DeviceIntPtr to)
|
|||
}
|
||||
|
||||
if (from->button->xkb_acts) {
|
||||
if (!to->button->xkb_acts) {
|
||||
to->button->xkb_acts = calloc(1, sizeof(XkbAction));
|
||||
if (!to->button->xkb_acts)
|
||||
FatalError("[Xi] not enough memory for xkb_acts.\n");
|
||||
}
|
||||
size_t maxbuttons = max(to->button->numButtons, from->button->numButtons);
|
||||
to->button->xkb_acts = xnfreallocarray(to->button->xkb_acts,
|
||||
maxbuttons,
|
||||
sizeof(XkbAction));
|
||||
memset(to->button->xkb_acts, 0, maxbuttons * sizeof(XkbAction));
|
||||
memcpy(to->button->xkb_acts, from->button->xkb_acts,
|
||||
sizeof(XkbAction));
|
||||
from->button->numButtons * sizeof(XkbAction));
|
||||
}
|
||||
else {
|
||||
free(to->button->xkb_acts);
|
||||
|
|
|
@ -2525,6 +2525,8 @@ RecalculateMasterButtons(DeviceIntPtr slave)
|
|||
|
||||
if (master->button && master->button->numButtons != maxbuttons) {
|
||||
int i;
|
||||
int last_num_buttons = master->button->numButtons;
|
||||
|
||||
DeviceChangedEvent event = {
|
||||
.header = ET_Internal,
|
||||
.type = ET_DeviceChanged,
|
||||
|
@ -2535,6 +2537,15 @@ RecalculateMasterButtons(DeviceIntPtr slave)
|
|||
};
|
||||
|
||||
master->button->numButtons = maxbuttons;
|
||||
if (last_num_buttons < maxbuttons) {
|
||||
master->button->xkb_acts = xnfreallocarray(master->button->xkb_acts,
|
||||
maxbuttons,
|
||||
sizeof(XkbAction));
|
||||
memset(&master->button->xkb_acts[last_num_buttons],
|
||||
0,
|
||||
(maxbuttons - last_num_buttons) * sizeof(XkbAction));
|
||||
}
|
||||
|
||||
|
||||
memcpy(&event.buttons.names, master->button->labels, maxbuttons *
|
||||
sizeof(Atom));
|
||||
|
|
|
@ -530,7 +530,7 @@ ProcRRChangeOutputProperty(ClientPtr client)
|
|||
char format, mode;
|
||||
unsigned long len;
|
||||
int sizeInBytes;
|
||||
int totalSize;
|
||||
uint64_t totalSize;
|
||||
int err;
|
||||
|
||||
REQUEST_AT_LEAST_SIZE(xRRChangeOutputPropertyReq);
|
||||
|
|
|
@ -498,7 +498,7 @@ ProcRRChangeProviderProperty(ClientPtr client)
|
|||
char format, mode;
|
||||
unsigned long len;
|
||||
int sizeInBytes;
|
||||
int totalSize;
|
||||
uint64_t totalSize;
|
||||
int err;
|
||||
|
||||
REQUEST_AT_LEAST_SIZE(xRRChangeProviderPropertyReq);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue