Skip to content

Commit

Permalink
Update to head
Browse files Browse the repository at this point in the history
  • Loading branch information
pijulius committed Aug 5, 2024
2 parents 47590df + 567c0ba commit 4b5c78b
Show file tree
Hide file tree
Showing 35 changed files with 1,554 additions and 1,217 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ on:
push:
pull_request:


permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build:
Expand Down Expand Up @@ -40,6 +36,9 @@ jobs:
uses: actions/upload-pages-artifact@v3

deploy:
concurrency:
group: "pages"
cancel-in-progress: true
if: github.ref == 'refs/heads/next'
environment:
name: github-pages
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## New features

* Universal window rules (#1284). One option to rule them all! Added new configuration option `rules` to replace all existing rule options, and to provide more flexibility on top of that. See [picom(1)](https://picom.app/#_window_rules) for more details.
* `@include` directives in config file now also search in `$XDG_CONFIG_HOME/picom/include` and `$XDG_CONFIG_DIRS/picom/include`, in addition to relative to the config file's parent directory.
* Allow `corner-radius-rules` to override `corner-radius = 0`. Previously setting corner radius to 0 globally disables rounded corners. (#1170)
* New `picom-inspect` tool, which lets you test out your picom rules. Sample output:
Expand Down Expand Up @@ -34,6 +35,7 @@
* Marginally improve performance when resizing/opening/closing windows. (#1190)
* Type and format specifiers are no longer used in rules. These specifiers are what you put after the colon (':') in rules, e.g. the `:32c` in `"_GTK_FRAME_EXTENTS@:32c"`. Now this information is ignored and the property is matched regardless of format or type.
* `backend` is now a required option. picom will not start if one is not specified explicitly.
* New predefined target for conditions: `group_focused`. This target indicate whether the focused window is in the same window group as the window being matched.

## Deprecated features

Expand Down
13 changes: 13 additions & 0 deletions include/picom/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ typedef enum {

enum tristate { TRI_FALSE = -1, TRI_UNKNOWN = 0, TRI_TRUE = 1 };

/// Return value if it's not TRI_UNKNOWN, otherwise return fallback.
static inline enum tristate tri_or(enum tristate value, enum tristate fallback) {
return value ?: fallback;
}

static inline bool tri_or_bool(enum tristate value, bool fallback) {
return value == TRI_UNKNOWN ? fallback : value == TRI_TRUE;
}

static inline enum tristate tri_from_bool(bool value) {
return value ? TRI_TRUE : TRI_FALSE;
}

/// A structure representing margins around a rectangle.
typedef struct {
int top;
Expand Down
256 changes: 182 additions & 74 deletions man/picom.1.adoc

Large diffs are not rendered by default.

Loading

0 comments on commit 4b5c78b

Please sign in to comment.