Commit Graph

6715 Commits

Author SHA1 Message Date
matthieu
0d451cc2e3 sync 2020-04-28 07:05:59 +00:00
matthieu
39081bd51f Stop providing /usr/X11R6/README. It contains mostly oudated information
and few people found it. Discussed with schwwarze@, sthen@.
2020-04-28 07:04:49 +00:00
matthieu
7adfd269f8 update 2020-04-26 09:59:20 +00:00
tobias
c45f7648e9 Fixed memory leak in xu_get_strprop.
If a client calls XSetTextProperty for a window to clear all its
properties, then allocated memory within libX11 is not freed.

OK okan@
2020-04-25 20:07:28 +00:00
matthieu
ad9a065c46 Release unused filedescriptors in the privileged X server process.
There is no reason to keep /dev/pci* and /dev/ttyC* open in this process.
pointed to  by deraadt. ok kettenis@ deraadt@
2020-04-20 18:17:25 +00:00
matthieu
806accb3da Remove unused files. 2020-04-18 09:41:18 +00:00
tobias
493e33f3b9 Prevent out of boundary write with configuration files in which too many
quoted arguments are stored for other window managers.

The quotation handling happens within the while loop without checking if
the "end" limit has been already reached. If this happens, the final
NULL assignment leads to an out of boundary write on stack.

OK okan@
2020-04-16 17:12:49 +00:00
okan
831953a478 Allow configuring a percentage window size of the master window during
htile/vtile actions. From Uwe Werler, with a few manpage tweaks.
2020-04-16 13:32:35 +00:00
matthieu
ac0e12b4da dix: do not send focus event when grab actually does not change
upstream commit 364d64981549544213e2bca8de6ff8a5b2b5a69e

Fixes an issue in xserver 1.20 where some applications were loosing
focus. Naddy@ reported it appeards in SDL 1.2 games (burgerspace).

tested and ok naddy@
2020-04-14 17:29:21 +00:00
matthieu
e6ad4e6beb update 2020-04-13 08:29:18 +00:00
matthieu
9064f8eee5 Update to xserver 1.20.8. ok jsg@ robert@ 2020-04-13 08:06:58 +00:00
kettenis
b8fd44900b Remove #ifdef that doesn't make sense anymore; extend clang workaround to
conver __sync_val_compare_and_swap.

ok jsg@
2020-04-03 10:06:14 +00:00
kettenis
cd2d30e6df Make this build on clang architectures that don't have 64-bit atomic
instructions.  Clang doesn't allow redeclaration (and therefore
redefinition) of the __sync_* builtins.  Use #pragma redefine_extname
to work around that restriction.  Clang also turns __sync_add_and_fetch
into __sync_fetch_and_add (and __sync_sub_and_fetch into
__sync_fetch_and_sub) in certain cases, so provide these functions as
well.

ok jsg@
2020-04-03 07:26:18 +00:00
jsg
d1d3f7dcb4 test for 32 bit atomic builtins was incorrectly testing for 64 bit atomics
noticed when going over a macppc clang build error reported by deraadt@
2020-04-03 01:58:40 +00:00
matthieu
a6fc36028d sort architectures list 2020-04-01 19:58:02 +00:00
matthieu
9d9d20762c Set the VT to be used by the X server on arm64 too. ok phessler@ 2020-04-01 19:46:03 +00:00
matthieu
79bf692af9 more xorg-macros.m4 to xhare/mi where it belongs. noticed by espie@ 2020-03-24 17:56:57 +00:00
okan
6a7a7f23d8 zap stray tabs 2020-03-24 14:48:29 +00:00
okan
9be0e4bdf0 Instead of using _NET_ACTIVE_WINDOW on restart, use the pointer location
to determine what client to set active. Reduces a round trip for every
window.
2020-03-24 14:47:29 +00:00
okan
afa5b8b67f Add support for SIGINT/SIGTERM. 2020-03-23 20:14:27 +00:00
tim
4b4fe72f09 Simplify conditional construct.
OK okan@
2020-03-20 18:50:08 +00:00
okan
0f6482dcc4 Trim event_mask to those that the root window actually needs. 2020-03-20 15:16:31 +00:00
okan
f91df0c64f No need to lookup current client early; move to right before it is
needed.
2020-03-20 12:13:20 +00:00
tim
caa175be7e Recommit 1.259, but now with TAILQ_FOREACH_SAFE.
From and OK okan@

Original commit message:

Plug two memory leaks. Also get rid of a variable that is no longer
necessary.

OK okan@
2020-03-16 17:50:44 +00:00
tim
5376c8c363 Revert previous. Causes a crash as reported by Tom Murphy. 2020-03-14 16:11:09 +00:00
tim
99b5f48359 Simplify list markup.
OK okan@ schwarze@
2020-03-13 20:50:07 +00:00
tim
8990b0be5d Plug two memory leaks. Also get rid of a variable that is no longer
necessary.

OK okan@
2020-03-13 20:49:13 +00:00
kettenis
fb24e5a8dd Use modesetting driver as the default for rkdrm(4).
ok patrick@, jsg@
2020-03-04 21:07:12 +00:00
okan
aa3cb8422c Remove ColormaskChange from event-mask since there's no event handler. 2020-02-28 13:38:35 +00:00
okan
caa934d82b Unrelated style fixes, consistency changes and sorting, appropriate
dosage/removal of wrappers, simplification of name queue, client cycle joins
other kb/mb bound functions.
2020-02-27 14:56:39 +00:00
matthieu
50c0d5c236 update 2020-02-22 13:48:42 +00:00
jsg
4706129d11 add mips64, mips64el and powerpc to the list of archs with -O0 in CFLAGS
builds were running out of memory

requested by deraadt@
2020-02-21 07:23:09 +00:00
jsg
12feee4512 regen 2020-02-20 02:59:02 +00:00
jsg
e374dad6a5 use futexes in Mesa on archs with atomics
tested by matthieu@ naddy@ and myself
2020-02-20 02:55:46 +00:00
okan
ea9d0bc072 Allow the 'empty' group clients to be window-{h,v}tile'd.
Behaviour (or lack there of) noticed by Raf Czlonka.
2020-02-07 18:53:41 +00:00
matthieu
8e89b73ce9 Add sanity checks to futex_wait()
- handle the NULL timeout pointer case
- avoid negative cases.

Suggested by cheloha@ ok cheloha@, jsg@
2020-02-05 07:26:15 +00:00
matthieu
863ee81424 update 2020-02-04 18:40:46 +00:00
matthieu
514c5b7b09 Fix absolute to relative timeout computation. ok jsg@, mpi@ 2020-02-04 18:40:21 +00:00
okan
363365145d Map ('5') and allow mod5mask (altgr) as a modifier.
From Artturi Alm (though changed from 'm' to '5')
2020-02-03 16:38:02 +00:00
jca
5c4fe3d884 Zap stray #warning introduced in last commit
Grrr, sorry about that.
2020-01-30 13:52:30 +00:00
jca
704a56b63d Better checks for static_assert availability
When not in c++ or c11 mode:
- check for _Static_assert support in clang with __has_extension
- gcc implements _Static_assert starting with 4.6.0
- as a fallback, use a forward decl instead of ((void)0) so that
  static_assert can be used at file scope (scope issue pointed out by
  guenther@)

ok jsg@
2020-01-30 13:21:13 +00:00
jca
8344f41b9b Avoid _Static_assert in Mesa/libEGL on non-clang archs
Temporary workaround while we find a better solution.
Linking errors in ports reported by cwen@, "Please commit" jsg@
2020-01-28 14:25:30 +00:00
matthieu
1724d6929f sync 2020-01-26 14:01:42 +00:00
matthieu
900a1ed81c update 2020-01-26 13:49:27 +00:00
matthieu
40d42722f6 Update to xserver 1.20.7 plus 2 extra fixes from upstream. ok jsg@ 2020-01-26 13:48:54 +00:00
matthieu
f3fa3831bb Update to libepoxy 1.5.4. ok jsg@ 2020-01-26 13:45:49 +00:00
matthieu
6629d50366 Fix for removal of the shadowDamage() macro in xserver 1.20.
Problem nocited by David Savolainen. Thanks.
2020-01-25 18:06:04 +00:00
okan
b6e5a98f51 add, then use, xvasprintf, checking for appropriate return. 2020-01-22 19:58:35 +00:00
jsg
d37d5f3d84 fix some things which got broken in merge 2020-01-22 03:34:13 +00:00
jsg
c0a649c02f add files generated by python scripts which stopped being shipped with
distfiles when upstream removed autotools
2020-01-22 03:07:41 +00:00