Commit Graph

6703 Commits

Author SHA1 Message Date
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
jsg
75490c6cdf add back autotools files removed upstream 2020-01-22 03:02:59 +00:00
jsg
a8767ad89a update 2020-01-22 02:54:22 +00:00
jsg
5f8a22396c sync 2020-01-22 02:52:03 +00:00
jsg
2796e1e6a2 Merge Mesa 19.2.8 2020-01-22 02:49:17 +00:00
jsg
18af3bcac6 Import Mesa 19.2.8 2020-01-22 02:07:15 +00:00
okan
9f969d0080 Ensure the pointer stays within client bounds after a window 'snap' (to edge).
reported by Stefan Hagen.
2020-01-21 15:50:03 +00:00
matthieu
553b461bdc Disable the print-immediate and print-on-error functions in xterm.
They a causing a pledge violation when called, and we can live without
them. ok millert, also discussed with deraadt@
2020-01-20 21:03:35 +00:00
matthieu
2961de70eb update 2020-01-18 15:20:28 +00:00
matthieu
147e36c7dc Disable PASTE64, TCAP_FKEYS and TCAP_QUERY explicitly.
They got enabled in previous xterm update but we don't want those.
PASTE64 issue and patch by deraadt@, discussed also with nicm@
2020-01-18 11:59:03 +00:00
matthieu
6158267635 update 2020-01-14 21:28:50 +00:00
matthieu
6cb0617196 Oops fix previous. 2020-01-14 21:18:04 +00:00
matthieu
b9ee46e1d5 Remove support for XA_IP_ADDRESS from XmuConvertStandardSelection()
This cause problems with pledged applications like xterm, as reported by
Benjamin Baier and also lacks support for IPv6 as shown in
Xorg bug #7611 https://bugs.freedesktop.org/show_bug.cgi?id=7611

Discussed with jca@ and deraadt@ and submitted upstreams
2020-01-14 21:01:32 +00:00