Commit Graph

2006 Commits

Author SHA1 Message Date
okan
7d83c3f6e3 Add a configtest flag (-n).
based on a diff from Sascha Paunovic.
2019-02-25 18:07:48 +00:00
okan
93ac77f595 Add 'group-close-[n]' action to close all windows within specified group.
heavily based on a diff from Nam Nguyen.
2019-02-25 16:40:49 +00:00
rapha
3634da3d70 Add support for yv12 encoding to video(1).
Frame data is converted to yv12 if Xv(3) does not support yuy2 and uyvy.

OK mpi@, landry@
2019-02-25 12:34:35 +00:00
matthieu
44d74a94be Update to xterm version 344. ok jsg@ 2019-02-24 11:41:42 +00:00
okan
24bbd9245a simplify screen 'area' usage for initial client placement 2019-02-23 19:17:17 +00:00
okan
54c6cee1ed restore order from before r1.248 (vtile/vtile containment changes). 2019-02-22 20:52:13 +00:00
okan
90189b3ce0 Rename internal functions to delinate between client remove, delete and xproto
delete; 'window-close' is now the proper action, but 'window-delete' as an
alias will remain until more interesting changes require breaking configs.
2019-02-22 19:40:32 +00:00
okan
aadf21edf2 Limit vtile/htile actions to clients fully within the screen of master client.
from Charles A Daniels.
2019-02-22 14:39:18 +00:00
okan
c684045919 fix missing includes 2019-02-13 15:43:24 +00:00
matthieu
f2f9eae95d use abs(3) for integers. Noticed by a clang warning. ok tb@ 2019-02-11 07:10:45 +00:00
landry
ac84202cf8 Pledge video(1):
* video -q needs 'stdio rpath wpath video' (needs O_RDWR on the device)
* video -i needs 'stdio rpath' (rpath for X11 error/locale access)
* other modes (ie display frames via X11, or output frames to file with
 -o/-O) need 'stdio rpath video' since we open output file/video device
before calling pledge(2).

with help from semarie@, nits from matthieu@
ok deraadt@
2019-01-22 20:02:40 +00:00
landry
b0c17c65a4 Rename err to errs to avoid shadowing potential err() usage, and fix two
typos while here.

ok semarie@ matthieu@
2019-01-04 17:45:00 +00:00
matthieu
cfac9b1f49 Unlink the following utilities from the build:
fslsfonts, fstobdf, showfont, xfsinfo, xfwp and scripts (xon)
Ports can be created if needed. ok deraadt@, jca@
2018-12-21 14:37:24 +00:00
okan
7d9a5b3486 Stop asking for events (NoEventMask) from menu window once done with
the menu (we don't destroy it, only unmap).
2018-11-14 19:22:51 +00:00
okan
ee0ce74a2f Allow 'transientfor' clients to inherit group and bwidth either during init or
via property notify events. Previously only the flags were set but nothing was
in the path to apply said flags and/or bwidth. Required slight of re-orgnaization
of client_init.
2018-11-13 17:37:13 +00:00
kn
5089c22b90 Use strtonum(3)
Zap obsolete linter hints while here.

Feedback and OK cheloha
2018-11-11 16:10:37 +00:00
kn
c5d5ef9f35 Zap unneeded bzero(3) on already zero initialized global data
OK cheloha
2018-11-11 16:01:21 +00:00
okan
0a0e524477 merge from base, from sashan@:
> - odd condition/test in PF lexer
> (and other lexers too)
>
> This commit rectifies earlier change:
>
> in the lex... even inside quotes, a \ followed by space or tab should
> expand to space or tab, and a \ followed by newline should be ignored
> (as a line continuation).  compatible with the needs of hoststated
> (which has the most strict quoted string requirements), and ifstated
> (where one commonly does line continuations in strings).
>
> OK deraadt@, OK millert@
2018-11-09 16:00:54 +00:00
okan
2fda12947a Use the original client border width to adjust initial placement of clients
containing {P,US}Position requests where they are explicitly set to 'ignore' in
cwmrc(5); clients are unaware that their border will be altered (removed in
this case) when calcuating position and thus end up a factor of their original
border width off once mapped by cwm(1). cwm(1) will essentially shift the
client to the edge if the original request's position and border match.

Window offset noticed by at least Andre Stoebe via bugs@, and others since
(and likely before). Thanks!
2018-11-08 15:49:42 +00:00
matthieu
b2e24c1d7c Remove the unused 'keyFile' resource.
It is not used anymore in xenodm (was used to specify the secret keys
for the XDM-AUTHORIZATION-1 authentication protocol in xdm with
xdmcp).
ok kn@
2018-11-03 18:04:45 +00:00
matthieu
b129529692 regen 2018-11-03 14:01:21 +00:00
matthieu
e0d21cc9e4 Remove useless check for XdmcpWrap().
It was only needed by xdmcp. ok tb@ mortimer@
2018-11-03 14:01:02 +00:00
matthieu
f5d27d0af0 Fix path to app-default resource file. From Sascha Paunovic,
tweaked by me. ok deraadt@
2018-11-01 11:48:04 +00:00
matthieu
f9024c4d46 Pass the correct buffer length to strlcpy() to avoid truncation.
Problem noticed by Edgar Pettijohn III, ok tb@
2018-10-28 19:38:19 +00:00
mestre
bb65f435ee Add a few \n I missed to add in some fprintf(3)s in my last commit 2018-10-26 17:37:47 +00:00
mestre
2288d216a5 If input_name is provided we can unveil(2) it with read permissions, if
output_name is provided we need to unveil(2) this one with rwc. Additionally
depending on the different combinations of if these files are passed via args
or from stdin/to stdout we can also pledge(2) accordingly to the code path.

OK deraadt@
2018-10-26 17:12:03 +00:00
matthieu
edd3ecfc7c Explicitely disable xf86misc 2018-10-20 19:09:19 +00:00
matthieu
f4445f7d08 Add an option to disable the active area. From Sebastien Marie.
ok claudio@ Thanks.
2018-09-06 07:21:34 +00:00
matthieu
02339cbc79 use #define XXX 0 to explicitelty disable an option. 2018-07-21 09:31:22 +00:00
matthieu
214a961ee2 Explicitely disable paste64 and readline options, to disable bracketed paste.
readline was not enabled, but paste64 which was on by default enables it.
requested by deraadt@
2018-07-21 09:16:42 +00:00
matthieu
0523432214 This file is not generated by configure, @ substitutions arent available 2018-07-17 11:52:12 +00:00
okan
2f18ffa39d Remove unused prototype; from Ross L Richardson. 2018-07-16 14:19:23 +00:00
matthieu
ebae2cc3f5 Remove useless test for DISPLAY number.
This script is only run by xenodm for DISPLAY=:0
2018-07-16 06:52:00 +00:00
matthieu
d39b1994a3 OpenBSD id 2018-07-15 09:58:03 +00:00
matthieu
d31532afbd Make Xstartup/Xreset consistent with GiveConsole/TakeConsole 2018-07-15 09:53:23 +00:00
matthieu
2a47fd34e2 regen 2018-07-15 09:07:48 +00:00
matthieu
10783d146c Revert the removal of Xreset and Xstartup. 2018-07-15 09:05:11 +00:00
matthieu
38960e7a0a Update to xkbcomp 1.4.2 2018-07-12 14:38:26 +00:00
matthieu
0aad528dd7 pledges for session can be tighten a bit now. 2018-07-11 20:28:41 +00:00
matthieu
15bc4073c0 The file descriptor parameter is not used by DefineSelf() in xenodm.
Zap it.
2018-07-11 19:51:12 +00:00
matthieu
4feeb26f77 sessreg -x is useless if not updating utmp. Remove it.
Also don't try to remove utmp lines that were not written.
2018-07-11 19:20:40 +00:00
matthieu
ec07007116 Ooops I didn't intend to commit that part. revert it. 2018-07-11 19:06:29 +00:00
matthieu
b3e8c00865 Actually remove the source files for Xstartup and Xreset 2018-07-11 19:05:22 +00:00
matthieu
35981369b1 Remove Xstartup and Xreset script. Xenodm uses GiveConsole and TakeConsole 2018-07-11 19:03:50 +00:00
matthieu
5d69c81cc1 Keep a better trace of pending children to be reaped. 2018-07-11 16:57:04 +00:00
matthieu
c3094ef041 Delete unused code 2018-07-11 16:33:44 +00:00
matthieu
6d7357f962 Bind <Key>Escape to erase-line by default. 2018-07-11 16:28:54 +00:00
matthieu
c8c914a77e Less ifdef cruft. 2018-07-11 16:26:25 +00:00
matthieu
bf265b5bbc use strvis on login name when logging debug information it since it
may contain control characters. And remove an extra logging of the same.
2018-07-11 16:20:20 +00:00
matthieu
8f540c071b Restore previous SIGCHLD handler in serverPause().
This fixes the issue where xenodm whould stay stuck after kill the
Xserver twice.

While here add some more Debug() calls to help following what's going on
2018-07-11 14:35:46 +00:00