Skip to content

Commit

Permalink
Merge branch 'next' into stable/9
Browse files Browse the repository at this point in the history
Bumped version number in meson.build

Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Feb 4, 2022
2 parents e553e00 + 3b9af14 commit 1cf01ec
Show file tree
Hide file tree
Showing 81 changed files with 5,153 additions and 2,088 deletions.
28 changes: 28 additions & 0 deletions .builds/freebsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
image: freebsd/latest
packages:
- libev
- libXext
- libxcb
- meson
- pkgconf
- cmake
- xcb-util-renderutil
- xcb-util-image
- pixman
- uthash
- libconfig
- libglvnd
- dbus
- pcre
sources:
- https://github.com/yshui/picom
tasks:
- setup: |
cd picom
CPPFLAGS="-I/usr/local/include" meson -Dunittest=true build
- build: |
cd picom
ninja -C build
- unittest: |
cd picom
ninja -C build test
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
executor: e
steps:
- build:
build-config: -Dbuild_docs=true -Db_coverage=true
build-config: -Dwith_docs=true -Db_coverage=true
- persist_to_workspace:
root: .
paths:
Expand Down
21 changes: 21 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Checks: >
readability-*,
performance-*,
modernize-*,
google-readability-todo,
cert-err34-c,
cert-flp30-c,
bugprone-*,
misc-misplaced-const,
misc-redundant-expression,
misc-static-assert,
-clang-analyzer-*,
-readability-isolate-declaration,
-readability-magic-numbers
AnalyzeTemporaryDtors: false
FormatStyle: file
CheckOptions:
- key: readability-magic-numbers.IgnoredIntegerValues
value: 4;8;16;24;32;1;2;3;4096;65536;
- key: readability-magic-numbers.IgnoredFloatingPointValues
value: 255.0;1.0;
14 changes: 11 additions & 3 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,22 @@
<!-- Tell us something about the desktop environment you are using, for example: i3-gaps, Gnome Shell, etc. -->

### picom version
<!-- Put the output of `compton --version` or `picom --version` here. -->
<!-- If you are running compton v4 or later, please also include the output of `compton --diagnostics` or `picom --diagnostics` -->
<!-- Example: v1 -->
<!-- Put the output of `picom --version` here. -->
<!-- Example: v8.2 -->
<details>
<summary>Diagnostics</summary>

<!-- Please also include the output of `picom --diagnostics` -->
</details>

### Configuration:
<details>
<summary>Configuration file</summary>

```
// Paste your configuration here
```
</details>

### Steps of reproduction
<!--
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "CodeQL"

on:
push:
branches: [next]
pull_request:
branches: [next]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: ['cpp', 'python']

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

# Install dependencies
- 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
if: ${{ matrix.language == 'cpp' }}

# Autobuild
- name: Autobuild
uses: github/codeql-action/autobuild@v1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
2 changes: 1 addition & 1 deletion .github/workflows/coding-style-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: git fetch --depth=1 origin ${{ github.event.pull_request.base.sha }}
- uses: yshui/git-clang-format-lint@v1.10
- uses: yshui/git-clang-format-lint@v1.11
with:
base: ${{ github.event.pull_request.base.sha }}
2 changes: 1 addition & 1 deletion .github/workflows/coding-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: yshui/git-clang-format-lint@v1.10
- uses: yshui/git-clang-format-lint@v1.12
with:
base: ${{ github.event.ref }}~1
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ build/
compile_commands.json
build.ninja

# ccls
# language servers
.ccls-cache
.clangd
.cache

# CMake files
compton-*.deb
Expand Down
29 changes: 27 additions & 2 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@ Sorted in alphabetical order
Open an issue or pull request if you don't want your name listed here.

Adam Jackson <[email protected]>
adelin-b <[email protected]>
Alexander Kapshuna <[email protected]>
Antonin Décimo <[email protected]>
Antonio Vivace <[email protected]>
Avi-D-coder <[email protected]>
Ben Friesen <[email protected]>
Bernd Busse <[email protected]>
Bert Gijsbers <[email protected]>
bhagwan <[email protected]>
Bodhi <[email protected]>
Brottweiler <[email protected]>
Carl Worth <[email protected]>
Christopher Jeffrey <[email protected]>
Corax26 <[email protected]>
Dan Elkouby <[email protected]>
Dana Jansens <[email protected]>
Daniel Kwan <[email protected]>
Dave Airlie <[email protected]>
David Schlachter
dolio
Expand All @@ -22,15 +27,22 @@ Dylan Araps <[email protected]>
Einar Lielmanis <[email protected]>
Eric Anholt <[email protected]> <[email protected]>
Greg Flynn
Harish Rajagopal <[email protected]>
hasufell <[email protected]>
Ignacio Taranto <[email protected]>
Istvan Petres
James Cloos <[email protected]>
Jamey Sharp <[email protected]>
Jan Beich <[email protected]>
Jarrad <[email protected]>
Javeed Shaikh <[email protected]>
Jerónimo Navarro <[email protected]>
jialeens <[email protected]>
Johnny Pribyl <[email protected]>
Keith Packard <[email protected]>
Kevin Kelley <[email protected]>
ktprograms <[email protected]>
Lukas Schmelzeisen <[email protected]>
mæp <[email protected]>
Mark Tiefenbruck <[email protected]>
Matthew Allum <[email protected]>
Expand All @@ -39,22 +51,35 @@ Michael Reed <[email protected]>
Michele Lambertucci <[email protected]>
Namkhai Bourquin <[email protected]>
Nate Hart <[email protected]>
nia <[email protected]>
notfoss <[email protected]>
Omar Polo <[email protected]>
orbea <[email protected]>
@Paradigm0001
Patrick Collins <[email protected]>
Patrick Collins
Peter Mattern <[email protected]>
Phil Blundell <[email protected]>
Que Quotion <[email protected]>
Que Quotion <[email protected]> <[email protected]>
Rafael Kitover <[email protected]>
Richard Grenville <[email protected]>
Rytis Karpuska <[email protected]>
Samuel Hand <[email protected]>
Scott Leggett <[email protected]>
scrouthtv <[email protected]>
Sebastien Waegeneire <[email protected]>
Subhaditya Nath <[email protected]>
Tasos Sahanidis <[email protected]>
Thiago Kenji Okada <[email protected]>
Tilman Sauerbeck <[email protected]>
Tim van Dalen <[email protected]>
Tomas Janousek <[email protected]>
Tom Dörr <[email protected]>
Toni Jarjour
Tuomas Kinnunen <[email protected]>
Uli Schlachter <[email protected]>
Walter Lapchynski <[email protected]>
Will Dietz <[email protected]>
XeCycle <[email protected]>
Yuxuan Shui <[email protected]>
zilrich
ಠ_ಠ <[email protected]>
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ The current battle plan of this fork is to refactor it to make the code _possibl

We also try to fix bugs.

You can leave your feedbacks or thoughts in the [discussion tab](https://github.com/yshui/picom/discussions).

The original README can be found [here](README_orig.md)

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

On Debian based distributions (e.g. Ubuntu), the list of needed packages are
On Debian based distributions (e.g. Ubuntu), the needed packages are

```
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
```

On Fedora, the needed packages are

```
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
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
```

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

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

Expand Down
Loading

0 comments on commit 1cf01ec

Please sign in to comment.