Skip to content

Commit 1cf01ec

Browse files
committed
Merge branch 'next' into stable/9
Bumped version number in meson.build Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2 parents e553e00 + 3b9af14 commit 1cf01ec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+5153
-2088
lines changed

.builds/freebsd.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
image: freebsd/latest
2+
packages:
3+
- libev
4+
- libXext
5+
- libxcb
6+
- meson
7+
- pkgconf
8+
- cmake
9+
- xcb-util-renderutil
10+
- xcb-util-image
11+
- pixman
12+
- uthash
13+
- libconfig
14+
- libglvnd
15+
- dbus
16+
- pcre
17+
sources:
18+
- https://github.com/yshui/picom
19+
tasks:
20+
- setup: |
21+
cd picom
22+
CPPFLAGS="-I/usr/local/include" meson -Dunittest=true build
23+
- build: |
24+
cd picom
25+
ninja -C build
26+
- unittest: |
27+
cd picom
28+
ninja -C build test

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
executor: e
4040
steps:
4141
- build:
42-
build-config: -Dbuild_docs=true -Db_coverage=true
42+
build-config: -Dwith_docs=true -Db_coverage=true
4343
- persist_to_workspace:
4444
root: .
4545
paths:

.clang-tidy

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Checks: >
2+
readability-*,
3+
performance-*,
4+
modernize-*,
5+
google-readability-todo,
6+
cert-err34-c,
7+
cert-flp30-c,
8+
bugprone-*,
9+
misc-misplaced-const,
10+
misc-redundant-expression,
11+
misc-static-assert,
12+
-clang-analyzer-*,
13+
-readability-isolate-declaration,
14+
-readability-magic-numbers
15+
AnalyzeTemporaryDtors: false
16+
FormatStyle: file
17+
CheckOptions:
18+
- key: readability-magic-numbers.IgnoredIntegerValues
19+
value: 4;8;16;24;32;1;2;3;4096;65536;
20+
- key: readability-magic-numbers.IgnoredFloatingPointValues
21+
value: 255.0;1.0;

.github/issue_template.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,22 @@
1414
<!-- Tell us something about the desktop environment you are using, for example: i3-gaps, Gnome Shell, etc. -->
1515

1616
### picom version
17-
<!-- Put the output of `compton --version` or `picom --version` here. -->
18-
<!-- If you are running compton v4 or later, please also include the output of `compton --diagnostics` or `picom --diagnostics` -->
19-
<!-- Example: v1 -->
17+
<!-- Put the output of `picom --version` here. -->
18+
<!-- Example: v8.2 -->
19+
<details>
20+
<summary>Diagnostics</summary>
21+
22+
<!-- Please also include the output of `picom --diagnostics` -->
23+
</details>
2024

2125
### Configuration:
26+
<details>
27+
<summary>Configuration file</summary>
28+
2229
```
2330
// Paste your configuration here
2431
```
32+
</details>
2533

2634
### Steps of reproduction
2735
<!--

.github/workflows/codeql-analysis.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [next]
6+
pull_request:
7+
branches: [next]
8+
9+
jobs:
10+
analyze:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
language: ['cpp', 'python']
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v2
22+
with:
23+
# We must fetch at least the immediate parents so that if this is
24+
# a pull request then we can checkout the head.
25+
fetch-depth: 2
26+
27+
# If this run was triggered by a pull request event, then checkout
28+
# the head of the pull request instead of the merge commit.
29+
- run: git checkout HEAD^2
30+
if: ${{ github.event_name == 'pull_request' }}
31+
32+
# Initializes the CodeQL tools for scanning.
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v1
35+
with:
36+
languages: ${{ matrix.language }}
37+
38+
# Install dependencies
39+
- run: sudo apt install libxext-dev libxcb1-dev libxcb-damage0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-randr0-dev libxcb-composite0-dev libxcb-image0-dev libxcb-present-dev libxcb-xinerama0-dev libxcb-glx0-dev libpixman-1-dev libdbus-1-dev libconfig-dev libgl1-mesa-dev libpcre2-dev libevdev-dev uthash-dev libev-dev libx11-xcb-dev meson ninja-build
40+
if: ${{ matrix.language == 'cpp' }}
41+
42+
# Autobuild
43+
- name: Autobuild
44+
uses: github/codeql-action/autobuild@v1
45+
46+
- name: Perform CodeQL Analysis
47+
uses: github/codeql-action/analyze@v1

.github/workflows/coding-style-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
steps:
99
- uses: actions/checkout@v2
1010
- run: git fetch --depth=1 origin ${{ github.event.pull_request.base.sha }}
11-
- uses: yshui/git-clang-format-lint@v1.10
11+
- uses: yshui/git-clang-format-lint@v1.11
1212
with:
1313
base: ${{ github.event.pull_request.base.sha }}

.github/workflows/coding-style.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
- uses: actions/checkout@v2
1010
with:
1111
fetch-depth: 2
12-
- uses: yshui/git-clang-format-lint@v1.10
12+
- uses: yshui/git-clang-format-lint@v1.12
1313
with:
1414
base: ${{ github.event.ref }}~1

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ build/
1616
compile_commands.json
1717
build.ninja
1818

19-
# ccls
19+
# language servers
2020
.ccls-cache
21+
.clangd
22+
.cache
2123

2224
# CMake files
2325
compton-*.deb

CONTRIBUTORS

+27-2
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,23 @@ Sorted in alphabetical order
22
Open an issue or pull request if you don't want your name listed here.
33

44
Adam Jackson <ajax@nwnk.net>
5+
adelin-b <berard.adelin@gmail.com>
56
Alexander Kapshuna <kapsh@kap.sh>
67
Antonin Décimo <antonin.decimo@gmail.com>
78
Antonio Vivace <dev@avivace.com>
89
Avi-D-coder <avi.the.coder@gmail.com>
910
Ben Friesen <bfriesen95@gmail.com>
1011
Bernd Busse <bernd@busse-net.de>
12+
Bert Gijsbers <gijsbers@science.uva.nl>
13+
bhagwan <bhagwan@disroot.org>
14+
Bodhi <craig.langman@gmail.com>
1115
Brottweiler <tibell.christoffer@gmail.com>
1216
Carl Worth <cworth@cworth.org>
1317
Christopher Jeffrey <chjjeffrey@gmail.com>
1418
Corax26 <cor.ax26@gmail.com>
1519
Dan Elkouby <streetwalkermc@gmail.com>
1620
Dana Jansens <danakj@orodu.net>
21+
Daniel Kwan <daniel.w.t.kwan@outlook.com>
1722
Dave Airlie <airlied@linux.ie>
1823
David Schlachter
1924
dolio
@@ -22,15 +27,22 @@ Dylan Araps <dylan.araps@gmail.com>
2227
Einar Lielmanis <einars@gmail.com>
2328
Eric Anholt <anholt@freebsd.org> <eric@anholt.net>
2429
Greg Flynn
30+
Harish Rajagopal <harish.rajagopals@gmail.com>
2531
hasufell <julian.ospald@googlemail.com>
32+
Ignacio Taranto <ignacio.taranto@eclypsium.com>
33+
Istvan Petres
2634
James Cloos <cloos@jhcloos.com>
2735
Jamey Sharp <jamey@minilop.net>
2836
Jan Beich <jbeich@FreeBSD.org>
2937
Jarrad <jarrad.whitaker@gmail.com>
3038
Javeed Shaikh <syscrash2k@gmail.com>
3139
Jerónimo Navarro <jnavarro@ancasrl.com.ar>
40+
jialeens <jialeadmin@163.com>
41+
Johnny Pribyl <pribylsnbits@gmail.com>
3242
Keith Packard <keithp@keithp.com>
3343
Kevin Kelley <kelleyk@kelleyk.net>
44+
ktprograms <ktprograms@gmail.com>
45+
Lukas Schmelzeisen <l.schmelzeisen@gmx.de>
3446
mæp <m.aep@live.com>
3547
Mark Tiefenbruck <mark@fluxbox.org>
3648
Matthew Allum <breakfast@10.am>
@@ -39,22 +51,35 @@ Michael Reed <supertron421@gmail.com>
3951
Michele Lambertucci <michele.lambertucci@mail.polimi.it>
4052
Namkhai Bourquin <namkhai.n3@protonmail.com>
4153
Nate Hart <nejthan@gmail.com>
54+
nia <nia@netbsd.org>
4255
notfoss <static.vortex@gmx.com>
56+
Omar Polo <op@omarpolo.com>
57+
orbea <orbea@riseup.net>
4358
@Paradigm0001
44-
Patrick Collins <Patricol@users.noreply.github.com>
59+
Patrick Collins
4560
Peter Mattern <matternp@arcor.de>
4661
Phil Blundell <pb@reciva.com>
47-
Que Quotion <quequotion@bugmenot.com>
62+
Que Quotion <quequotion@bugmenot.com> <the_q123@hotmail.com>
63+
Rafael Kitover <rkitover@gmail.com>
4864
Richard Grenville <pyxlcy@gmail.com>
4965
Rytis Karpuska <rytis.karpuska@gmail.com>
66+
Samuel Hand <samuel.d.hand@gmail.com>
5067
Scott Leggett <scott@sl.id.au>
68+
scrouthtv <lennivh24@gmail.com>
69+
Sebastien Waegeneire <sebastien@waegeneire.com>
70+
Subhaditya Nath <sn03.general@gmail.com>
5171
Tasos Sahanidis <tasos@tasossah.com>
72+
Thiago Kenji Okada <thiagokokada@gmail.com>
5273
Tilman Sauerbeck <tilman@code-monkey.de>
5374
Tim van Dalen <Tim@timvdalen.nl>
5475
Tomas Janousek <tomi@nomi.cz>
76+
Tom Dörr <tomdoerr96@gmail.com>
77+
Toni Jarjour
78+
Tuomas Kinnunen <tuomas.kinnunen@aalto.fi>
5579
Uli Schlachter <psychon@znc.in>
5680
Walter Lapchynski <wxl@ubuntu.com>
5781
Will Dietz <w@wdtz.org>
5882
XeCycle <XeCycle@Gmail.com>
5983
Yuxuan Shui <yshuiv7@gmail.com>
84+
zilrich
6085
ಠ_ಠ <easteregg@verfriemelt.org>

README.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ The current battle plan of this fork is to refactor it to make the code _possibl
77

88
We also try to fix bugs.
99

10+
You can leave your feedbacks or thoughts in the [discussion tab](https://github.com/yshui/picom/discussions).
11+
1012
The original README can be found [here](README_orig.md)
1113

1214
## Call for testers
@@ -87,10 +89,16 @@ Assuming you already have all the usual building tools installed (e.g. gcc, pyth
8789
* libev
8890
* uthash
8991

90-
On Debian based distributions (e.g. Ubuntu), the list of needed packages are
92+
On Debian based distributions (e.g. Ubuntu), the needed packages are
93+
94+
```
95+
libxext-dev libxcb1-dev libxcb-damage0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-randr0-dev libxcb-composite0-dev libxcb-image0-dev libxcb-present-dev libxcb-xinerama0-dev libxcb-glx0-dev libpixman-1-dev libdbus-1-dev libconfig-dev libgl1-mesa-dev libpcre2-dev libpcre3-dev libevdev-dev uthash-dev libev-dev libx11-xcb-dev meson
96+
```
97+
98+
On Fedora, the needed packages are
9199

92100
```
93-
libxext-dev libxcb1-dev libxcb-damage0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-randr0-dev libxcb-composite0-dev libxcb-image0-dev libxcb-present-dev libxcb-xinerama0-dev libxcb-glx0-dev libpixman-1-dev libdbus-1-dev libconfig-dev libgl1-mesa-dev libpcre2-dev libevdev-dev uthash-dev libev-dev libx11-xcb-dev
101+
dbus-devel gcc git libconfig-devel libdrm-devel libev-devel libX11-devel libX11-xcb libXext-devel libxcb-devel mesa-libGL-devel meson pcre-devel pixman-devel uthash-devel xcb-util-image-devel xcb-util-renderutil-devel xorg-x11-proto-devel
94102
```
95103

96104
To build the documents, you need `asciidoc`
@@ -116,7 +124,7 @@ $ LDFLAGS="-L/path/to/libraries" CPPFLAGS="-I/path/to/headers" meson --buildtype
116124

117125
As an example, on FreeBSD, you might have to run meson with:
118126
```bash
119-
$ LDFLAGS="-L/usr/local/include" CPPFLAGS="-I/usr/local/include" meson --buildtype=release . build
127+
$ LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" meson --buildtype=release . build
120128
$ ninja -C build
121129
```
122130

0 commit comments

Comments
 (0)