Commit Graph

2125 Commits

Author SHA1 Message Date
matthieu
0cfba462e6 Update to xrdb 1.2.0 2019-12-24 10:27:51 +00:00
deraadt
ed32a4544c xenodm uses the libc authentication layer incorrectly.
fix by markus or millert
Reported by Qualys
2019-12-04 09:53:47 +00:00
deraadt
4f8bdea832 disable opengl and mesa functionality
from matthieu, ok jsg
2019-12-03 17:44:29 +00:00
mglocker
1d6efe8e23 Tested a Logitech Webcam C930e which has 17 frame sizes but video(1) only
supports 16 today.  Bump the array to 32 which makes 1920x1080 work on this
device as well.

OK deraadt
2019-11-06 05:46:51 +00:00
matthieu
81f8815d74 Remove references to xman(1). Noticed by Alfred Morgan, thanks. 2019-10-19 16:39:49 +00:00
matthieu
13cff90981 Remove apps unlinked from the build several months ago. 2019-08-15 18:06:02 +00:00
matthieu
73599d9e9d Update to xwininfo 1.1.5 2019-08-15 17:59:13 +00:00
matthieu
6993267f7f Update to xprop 1.2.4 2019-08-15 17:52:58 +00:00
matthieu
ef2032d6ff Update to xmodmap 1.0.10 2019-08-15 17:51:00 +00:00
matthieu
354ece0923 Update to xmore 1.0.3 2019-08-15 17:48:05 +00:00
matthieu
69458bc6ad Update to xlsatoms 1.1.3 2019-08-15 17:43:42 +00:00
matthieu
fd47a85b33 Update to xlogo 1.0.5 2019-08-15 17:40:56 +00:00
matthieu
8c7b0d02e1 Update to xinput 1.6.3 2019-08-15 17:38:24 +00:00
matthieu
f0f73ad126 Update to xfd 1.1.3 2019-08-15 17:33:48 +00:00
matthieu
8ac46feb91 Update to xev 1.2.3 2019-08-15 17:31:43 +00:00
matthieu
a1d3d5c34b Remove empty file also removed upstreams. 2019-08-15 17:29:01 +00:00
matthieu
ecd7f987b2 Update to xcompmgr 1.1.8 2019-08-15 17:27:05 +00:00
matthieu
dc74642110 Update to xclock 1.0.9 2019-08-15 17:19:52 +00:00
matthieu
180002922b Update to xcalc 1.1.0 2019-08-15 17:13:47 +00:00
matthieu
274574490b Update to xbiff 1.0.4 2019-08-15 17:11:34 +00:00
matthieu
aa6a2ecbd7 Update to xbacklight 1.2.3 2019-08-15 17:09:24 +00:00
matthieu
3c49189247 Update to x11perf 1.6.1 2019-08-15 17:03:49 +00:00
matthieu
5c7f6f0f8c Update to setxkbmap 1.3.2 2019-08-15 17:03:15 +00:00
matthieu
6d205384e9 Update to sessreg 1.1.2 2019-08-15 17:02:20 +00:00
matthieu
38d585394d Update to mkfontscale 1.2.1. This version got merged with mkfontdir. 2019-08-15 17:01:12 +00:00
matthieu
3910490aae Update to fontstosfnt 1.0.5 2019-08-15 16:57:57 +00:00
matthieu
2542268dcc Update to bitmap 1.0.9 2019-08-15 16:56:00 +00:00
matthieu
b9bedc770a Provide better xsession examples. exec the window manager last.
Convert user's example to /bin/sh. Remove xman for example.
2019-08-15 16:23:33 +00:00
matthieu
6a5cb53020 Remove xman and olwm (not available from ports anymore) from menu 2019-08-15 16:17:16 +00:00
matthieu
3fd1c696d6 Remove xman from utilities menu. 2019-08-15 16:15:04 +00:00
schwarze
7a992bbebd Retire xman(1).
It's totally broken (requires MLINKS which we removed long ago,
relies on the old man.conf(5) format we stopped supporting long ago,
Alfred Morgan reported additional bugs on bugs@, ...),
it reimplements man(1) in a very poor way,
and it lacks many useful features that man(1) in an xterm(1)
readily provides, so fixing it would be a waste of time.

matthieu@ deraadt@ krw@ agree with the direction.
2019-08-15 12:11:36 +00:00
okan
2bcb96d9fd Because cwm warps the pointer during a client move (to stay within the client),
there's a window of time where an expose or enternotify event will get
generated for a lower client; use a hammer and drain events after keyboard
move/resize, until such a time that cwm doesn't warp the pointer.  Behavior
noticed by kn.

ok kn@
2019-08-13 18:45:38 +00:00
okan
ba4d949d04 Fix regression from r1.107 (lost a return); kettenis@ pointed out the high
potential for a use-after-free (true!) where kn@ ran into the regression using
an app that actually exercised the XGrabPointer() failure path.
2019-08-12 00:52:36 +00:00
kn
795560f751 Add application section
Link what is described as "applications" here to how they are actually
defined in cwmrc(5).

While here, call the configuration file what it is instead of reusing
the default path (already mentioned in the FILES section).

OK okan
2019-07-09 21:38:44 +00:00
kn
fed210f7a7 command uses execvp(3) not execve(2)
util.c:u_exec() has been doing so since import.
2019-07-02 23:37:47 +00:00
matthieu
41003a131f check return values against -1 "reasonable" deraadt@ 2019-06-29 20:29:48 +00:00
espie
04c7986e14 add (commented out) blurb to get openbsd-wallpaper running.
"perso j'ai rien contre" ok matthieu@
2019-06-29 13:33:06 +00:00
matthieu
156c07dd53 Check asprintf() return values correctly. ok and tweaks tb@ 2019-06-29 08:31:22 +00:00
matthieu
e5b23895c8 Fix the size of indicators in multi-monitors setups.
ssh-askpass(1) is computing the size of its indicators relatively to
the screen resolution. When multiple monitors are present, the support
for Xinerama computes the dimensions of the window to be created
relatively to the screen on which it will appear. But the computation
of the indicator size is based on the size of the whole display,
resulting in too small indicators (and too many of them if the screens
hare layed out horizontally).

Fix that by computing the resolution of the whole display before
taking xinerama into account.

ok djm@
2019-06-16 19:31:07 +00:00
jsg
f8d726d75d chown the first drm render node in addition to the primary drm device
ok matthieu@
2019-05-12 11:53:06 +00:00
tim
dbaf2f615b Plug a memory leak in log_debug(); OK okan@ 2019-04-29 19:03:20 +00:00
tim
20bce2a6bf Handle _NET_WM_NAME changes.
This fixes the problem where cwm's window menu wouldn't show Firefox's current
window title if it contains non-ASCII characters.

OK okan@
2019-04-29 19:02:21 +00:00
matthieu
3dc8e8dd7e Disable keyboard binding for abort-display() and update manual page.
while there remove a remaining reference to non-existent xdmshell(1).
Reported by Hiltjo Posthuma, ok solene@, bentley@
2019-04-16 05:51:04 +00:00
kn
cb9cf7367e There is no point in handling the -display option separately,
so parse all at once.

OK bentley
2019-04-02 14:16:37 +00:00
okan
48e6bf1e48 Check the atom type on propertynotify before iterating. 2019-03-11 15:25:46 +00:00
okan
c8b9937b26 use screen_find() for xrandr crtc changes 2019-03-10 22:53:11 +00:00
okan
b041ee6011 Find the managed screen from the parent window for client_current(). 2019-03-10 20:38:28 +00:00
matthieu
11de9a2471 Make it possible to build xterm with OPT_TRACE.
with tweaks from kn@.
2019-03-09 20:10:19 +00:00
schwarze
402fc78320 Do not replace wcwidth(3) with a broken, hand-rolled re-implementation
that comes bundled with xterm(1).
Issue found and based on a diff from Lauri Tirkkonen <lotheac at iki dot fi>.
The final form of the diff follows a suggestion from tedu@.
OK matthieu@
2019-03-08 21:25:40 +00:00
okan
18c4f462d2 Print window id in hex; while here, remove unnecessary newline. 2019-03-08 20:33:30 +00:00
okan
1dc13f57f5 Similar to keypress event, fetch the screen from the event root window in the
buttonpress handler; bail if we don't manage the screen. Allows us to find the
current client based on the screen/event root.
2019-03-08 17:40:43 +00:00
okan
e34b5f476a extend verbose logging for key/button events 2019-03-08 15:04:39 +00:00
okan
d039ccc7ef [keypress event] turns out we've been checking the wrong window for a matching
client thus always falling back to client_current(); while the current client
is problaby right in most cases, use event's subwindow (not window) to find the
client. Bail early if this event came to us from a screen we don't manage.
This is result of us grabing all keybindings off the root window instead of
selectively.
2019-03-08 14:48:02 +00:00
okan
adfbd35644 add parans for readibility 2019-03-08 13:17:26 +00:00
schwarze
8f242316fb Update the OPENBSD SPECIFICS section to match reality:
* Add the missing locale, modifyFunctionKeys, precompose, and scrollBar.
* Move backarrowKeyIsErase to conform to alphabetical sorting.
* Add a missing full stop.
Diff found in my tree; i obviously forgot to commit it earlier.
2019-03-08 12:54:30 +00:00
okan
4957b62d80 Teach client_current() to use a screen to find the current client instead of
iterating over all (fallback if no screen provided for now). Initially convert
trivial uses of client_current().
2019-03-07 14:28:17 +00:00
okan
92b42c1713 check cc->gc directly 2019-03-07 13:24:44 +00:00
okan
42f2ef6661 zip extra lines 2019-03-07 13:24:10 +00:00
okan
723d64d135 gc clientq inside groups, instead use the better maintained one per-screen 2019-03-07 13:14:41 +00:00
okan
053c616a9b shuffle deck chairs: rename group actions to match intent for clarity 2019-03-07 12:54:21 +00:00
okan
af76851447 same thing as screen_find() 2019-03-06 13:32:19 +00:00
okan
8fa20d6f43 Separate out the menu window from the client resize/move geom window; in each
case, create and destroy on-demand. Isolate more menu specific code.
2019-03-04 19:28:17 +00:00
okan
9bf0bd42aa fix a few misplaced (and misnamed) ewmh root window functions 2019-03-04 14:48:59 +00:00
okan
edf7ed842c _NET_WORKAREA needs ngroups, so screen_update_geometry() needs to come after
conf_group().
2019-03-04 14:36:02 +00:00
okan
f18d19c6ef simplify xftcolor config 2019-03-04 13:33:39 +00:00
okan
a15d877277 Tie group number and name together during config. 2019-03-01 14:32:01 +00:00
okan
ef3d45ea45 Move the group index (desktop number) check to the only 2 callers that require
checking due to ewmh.
2019-02-28 23:26:12 +00:00
okan
5efe73bca2 Ensure we don't action on the last group when the requested one is not found. 2019-02-28 23:20:52 +00:00
okan
b08a193eaf Selectively hide and show clients based on state; merge client_unhide() and
client_show().
2019-02-28 13:11:53 +00:00
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