Commit Graph

1953 Commits

Author SHA1 Message Date
Yuxuan Shui
60c9695394 ci: update coding style check
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-07-14 18:37:26 +01:00
Yuxuan Shui
a8b15f3a1b config_libconfig: resolve symlinks when setting include dir
If the config file is loaded from a symlink'd locaiton, it could be
confusing that include dir is set based on the location of the symlink
instead of the real file.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-07-14 18:30:03 +01:00
Yuxuan Shui
e2ed9125ed Merge pull request #843 from tokyoneon78/grammar_fix
Fix a typo in the man docs
2022-07-12 11:16:24 +01:00
tokyoneon78
8aa4512f75 Made a typo fix in the man docs 2022-07-10 02:10:30 +00:00
Yuxuan Shui
cd50596f0e Merge pull request #813 from softmoth/readme_confidence
README: Move old historical info out of main README
2022-04-13 17:04:58 +01:00
Tim Siegel
5a2115033e README: Move old historical info out of main README
The picom project is no longer a fledgling fork needing to justify its
existence. The README should present the user with relevant information
regarding the current project rather than apologies for a 6-year-old
fork of a longer-defunct prior project.

1. Rename README_orig.md to History.md, so it can contain other content
   of a historical nature.
2. Move still-relevant historical content from README to History.
3. Add a brief intro blurb to README saying that picom is an X
   compositor.
4. Mention Compton in the CONTRIBUTORS section.
5. Point to licensing information from README.
2022-04-12 09:43:57 -04:00
Yuxuan Shui
61faf42b9e Merge pull request #812 from i-c-u-p/chmod_+x-meson/install.sh 2022-04-12 11:48:49 +01:00
i-c-u-p
34b2d75f91 Made meson/install.sh executable
Changed permissions of meson/install.sh from 644 to 755 to be able to run it via "./install.sh" without first executing "chmod +x install.sh".
2022-04-12 05:41:41 +00:00
Yuxuan Shui
aa316aa360 ci: fix codeql tasks
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-13 14:07:12 +00:00
Yuxuan Shui
f8914dda23 backend: gl: apply postprocessing to border_color
Previously postprocessing is omitted when estimating the color of the
border (e.g. dimming, opacity, inversion, etc.), causing the border to
be drawn with the wrong color.

Related: #770

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-13 13:54:25 +00:00
Yuxuan Shui
e63ec3fd16 backend: gl: fix corner being drawn with wrong color
The outer pixels of the corner are drawn with antialiasing, but it color
used for antialiasing is wrong. The estimated border color is used when
there is actually no border.

Related: #770

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-13 13:49:45 +00:00
Yuxuan Shui
ea2ba58efd backend: gl: don't fill window with big border_width
If a window's border_width is bigger than its corner_radius, the inner
radius of the border become less than 0, causing the entire window to be
filled.

Fixes #778

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-10 07:47:48 +00:00
Yuxuan Shui
01649b68b9 backend: don't trust device_status after a reset
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-08 10:31:41 +00:00
Yuxuan Shui
e17eaefb89 backend: handle device reset
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-08 10:31:41 +00:00
Yuxuan Shui
a383dc1cdd backend: add new optional API: device_status
This is meant to be used to detect GPU resets.

Implemented in the glx backend using the GL_ARB_robustness extension.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-08 10:31:41 +00:00
Yuxuan Shui
126750f099 Bump version number
Closes #776

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-06 20:59:45 +00:00
yshui
928963721c Merge pull request #769 from yshui/dbus-window-object 2022-02-05 05:41:06 +00:00
Yuxuan Shui
4c5d6a19cd dbus: add signal named according to dbus naming conventions
Some code generators don't work well with signal names not in
UpperCamelCase. (e.g. https://dbus.pages.freedesktop.org/zbus)

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-04 16:02:08 +00:00
Yuxuan Shui
95dcc02d9c dbus: add Type property to window objects
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-04 16:02:06 +00:00
Yuxuan Shui
de434f7b1f config_libconfig: add dbus option
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-04 16:02:03 +00:00
Yuxuan Shui
cb6ea3f567 dbus: follow dbus naming conventions
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-04 16:00:37 +00:00
Yuxuan Shui
0f3926b912 dbus: add mappepd property to windows
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-04 16:00:36 +00:00
Yuxuan Shui
3bebcca7b4 dbus: add name property to windows
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-04 16:00:34 +00:00
Yuxuan Shui
dfc10da57a dbus: add some properties to window objects
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-04 16:00:33 +00:00
Yuxuan Shui
764990ade4 dbus: expose windows as dbus objects
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-04 16:00:29 +00:00
Yuxuan Shui
3b9af145f0 Update CONTRIBUTORS
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-27 11:21:30 +00:00
yshui
0ad6685614 Merge pull request #768 from yshui/deprecation-chore 2022-01-27 10:42:25 +00:00
Yuxuan Shui
6aa9fcc61f tests: set dbus request to the right path
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-27 02:38:52 +00:00
Yuxuan Shui
f4c4bdb33d dbus: properly handle object path
Previously we reply to requests sent to _any_ object path, even though
we only declare /com/github/chjj/compton. This commit makes sure we only
reply to request sent to the right path.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-27 02:28:37 +00:00
Yuxuan Shui
b4e0e6128c dbus: fix win_get with "id"
The target name got changed to "base.id" by accident.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-27 01:19:31 +00:00
Yuxuan Shui
c3fb9ef017 core: don't crash when binding root pixmap failed
Fixes #767

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-25 00:15:15 +00:00
Yuxuan Shui
b65c8c775f Report error for setting vsync to non-boolean values
This is deprecated since v5, but we forgot to change this to error in
v8.

Doing it now.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 18:49:18 +00:00
Yuxuan Shui
73f66c7d5d Formally deprecate --menu-opacity
It was deprecated in v4, but warning message wasn't printed for
specifying it on the command line.

Properly deprecate it now.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 18:44:31 +00:00
Yuxuan Shui
4fbaaca0d6 Remove error message for no-dock-shadow and no-dnd-shadow
Deprecated since v4.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 18:40:39 +00:00
Yuxuan Shui
4532187c34 config_libconfig: reuse the deprecation message
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 18:38:32 +00:00
Yuxuan Shui
bcbc410c92 Deprecate the refresh-rate options
It's meaningless without the sw-opti option, which has been deprecated
since v6.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 18:35:45 +00:00
Yuxuan Shui
183e83cf11 Remove error message for --xrender-sync
Deprecated in v5.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 18:25:22 +00:00
Yuxuan Shui
c75c55d379 Remove error message for --no-name-pixmap
Deprecated since v5.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 18:23:47 +00:00
Yuxuan Shui
74ab086c70 Remove error message for -d and -S
Deprecated since v5.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 18:22:53 +00:00
Yuxuan Shui
d17c915acd Remove error message for --alpha-step
Deprecated since v5.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 18:20:42 +00:00
Yuxuan Shui
03dc98d47d Remove error messages for --dbe and --paint-on-overlay
Deprecated since v4.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 18:19:15 +00:00
Yuxuan Shui
f8424646a5 Remove the glx-swap-method option
Deprecated since v6.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 18:16:15 +00:00
Yuxuan Shui
1e757dcfad Remove the vsync-aggressive flag
Deprecated since v6.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 18:16:13 +00:00
Yuxuan Shui
e0642763b6 Remove the glx-use-gpushader4 options
Deprecated since v6.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 18:16:10 +00:00
Yuxuan Shui
51da5d3ad4 Formally deprecated the sw-opti option
It was deprecated in v6, but wasn't formally deprecated back then (e.g.
no warnings were printed for it). So formally deprecate it here.

This also left the refresh-rate option unused, so that will be
deprecated too.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 18:15:06 +00:00
yshui
43f35601bc Merge pull request #761 from yshui/new-backend-rounded-corner-2
Rounded border for new glx backend
2022-01-24 17:38:15 +00:00
Yuxuan Shui
e50be3173f backend: remove the read_pixel interface.
Sample the border color in the shader instead.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 17:34:38 +00:00
Yuxuan Shui
ef73668eb9 backend: gl: fix read_pixel
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 17:34:37 +00:00
Yuxuan Shui
4aac801a12 backend: gl: draw border for rounded windows
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 17:34:36 +00:00
Yuxuan Shui
b6c14989e1 backend: gl: trivial refactoring
* unifm -> uniform
* add macro for storing uniform locations

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-01-24 17:34:34 +00:00