Commit Graph

2099 Commits

Author SHA1 Message Date
Jason Grace
a3f50e8a3b Add running section to README.md 2024-01-20 10:00:54 -05:00
Arda Atci
217284642a Merge branch 'yshui:next' into next 2023-12-23 02:06:40 +03:00
Yuxuan Shui
496452cfce Merge pull request #1157 from absolutelynothelix/fix-segfaults-when-homeless 2023-12-22 10:59:55 +00:00
Maxim Solovyov
cacb45fbcd core: fix segfaults when the HOME environment variable is not set 2023-12-22 13:26:32 +03:00
Arda Atci
7336e4142b Merge branch 'yshui:next' into next 2023-12-20 22:34:54 +03:00
Yuxuan Shui
b368072e12 Merge pull request #1002 from tryone144/fix/use-effective-texture-size-for-corner-radius 2023-12-20 10:48:14 +00:00
Yuxuan Shui
e76cf43f02 backend: gl: adjust some log levels
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-12-19 11:30:42 +00:00
Arda Atci
c178be2874 Merge remote-tracking branch 'yshui/next' into next 2023-12-19 13:07:09 +03:00
Arda Atci
7da885e6c0 index on next: 5a8c61da revert opacity rule 2023-12-19 13:00:17 +03:00
Yuxuan Shui
70ea36bedd Merge pull request #1003 from tryone144/fix/xrender-black-corners 2023-12-19 05:08:01 +00:00
Bernd Busse
fd9c52d0ee backend: xrender: force 32bit ARGB visual when adding rounded corners
Force the temporary picture to a 32-bit ARGB visual when masking it for
rounded corners to keep the transparency information. Otherwise, windows
with a 24-bit visual would get black corners instead.

Authored-by: Bernd Busse <bernd@busse-net.de>
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-12-19 05:04:09 +00:00
Yuxuan Shui
e60cb65672 log: give verbose log level a color
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-12-18 04:18:18 +00:00
Yuxuan Shui
c7ec4c2c16 log: fix printing and parsing of the verbose log level
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-12-18 04:15:27 +00:00
Yuxuan Shui
aed2a205ed log: add a new log level, verbose
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-12-18 04:11:18 +00:00
Yuxuan Shui
7366553be2 core: distinguish preprocess failure and no window to render
paint_process would return NULL for both of these cases, but we should exit in
the failure case, and continue going in the other.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-12-17 23:44:56 +00:00
Yuxuan Shui
268e1d890a core: exit if paint_preprocess fails
This usually means there is another compositor running. If we don't do
this picom will spin forever.

Fixes #1104

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-12-17 23:34:34 +00:00
Yuxuan Shui
e92745671b compiler: use C23 auto when available
One annoying thing is C23 still defines auto as a storage class despite
it now being used for type inference. As a consequence we must write
"auto const" instead of the more natural "const auto".

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-12-17 08:55:23 +00:00
Yuxuan Shui
1b97f18e5f compiler: bring the unreachable macro in line with C23
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-12-17 08:51:22 +00:00
Yuxuan Shui
47bb825b2c backend: glx: don't return false from a function returning void *
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-12-17 08:51:20 +00:00
Yuxuan Shui
e90757a6ec Merge pull request #1107 from absolutelynothelix/name-default-backend-operation-implementations-consistently 2023-12-16 22:03:14 +00:00
Yuxuan Shui
40d5f42f00 Merge pull request #1110 from colonelpanic8/nix_flake 2023-12-16 21:25:40 +00:00
Yuxuan Shui
a26e4df85d Merge pull request #1105 from absolutelynothelix/backend-init-target-window-parameter 2023-12-16 17:28:24 +00:00
Yuxuan Shui
8b7c3ffb8b Merge pull request #1124 from absolutelynothelix/premultiply-shadow-color 2023-12-16 17:27:22 +00:00
Arda Atci
5a8c61daed revert opacity rule 2023-11-24 00:25:12 +03:00
Arda Atci
b1fce63a26 closes #26 2023-11-24 00:02:49 +03:00
Arda Atci
b73e6a0c45 Merge branch 'yshui:next' into next 2023-11-10 22:11:03 +03:00
Maxim Solovyov
a6b4e285f8 backend: xrender: don't leak the mask picture in the blur function 2023-10-17 01:10:27 +03:00
Arda Atci
98e842e83b fix for vertical stacked monitors 2023-09-30 01:35:52 +03:00
Arda Atci
2241c7d87a Merge branch 'yshui:next' into next 2023-09-30 01:04:35 +03:00
Maxim Solovyov
e07b1d7a12 backend: gl: convert the shadow color to the premultiplied format
to respect the globally set glBlendFunc and thus get the correct and
expected result
2023-09-24 01:16:15 +03:00
Maxim Solovyov
44800ed845 backend: remove default implementations of obsolete backend operations 2023-09-24 01:15:42 +03:00
Maxim Solovyov
bd3134efd9 backend: xrender: remove obsolete commented out backend operations 2023-09-24 01:15:42 +03:00
Maxim Solovyov
8bf82857c4 backend: name default backend operation implementations consistently 2023-09-24 01:15:42 +03:00
Maxim Solovyov
156423c010 backend: dummy: change type of ps parameter to session_t in dummy_init 2023-09-24 01:14:55 +03:00
Maxim Solovyov
825cc563e1 backend: egl: simplify usage of the target window parameter in egl_init 2023-09-24 01:14:55 +03:00
Maxim Solovyov
249f681857 backend: make target window a parameter of the init backend operation
to address a todo
2023-09-24 01:14:55 +03:00
Maxim Solovyov
751f30578e readme: update the discord badge's link 2023-09-23 00:36:19 +03:00
Arda Atci
21c2da549a multi monitor desktop switch fixed 2023-09-20 01:19:14 +03:00
Arda Atci
2b74392ec7 Merge pull request #27 from yshui/next
Merged with picom upstream
2023-09-20 00:04:29 +03:00
Maxim Solovyov
fbc803b983 c2: address some clang-tidy issues, run clang-format 2023-09-15 00:57:33 +03:00
Maxim Solovyov
a9914cda11 log: address some clang-tidy issues, run clang-format 2023-09-15 00:47:41 +03:00
Maxim Solovyov
0cd72bf61a opengl: address some clang-tidy issues 2023-09-15 00:43:15 +03:00
Maxim Solovyov
c6abb4e270 picom.sample.conf: remove the dbus option duplicate
closes #1128
2023-09-15 00:20:59 +03:00
Maxim Solovyov
d9e5795818 Merge pull request #1106 from absolutelynothelix/use-root-visual-and-depth-directly-in-xrender-init
backend: xrender: don't use root picture format in backend_xrender_init
2023-09-10 22:46:48 +03:00
Maxim Solovyov
9e6842c607 Merge pull request #1102 from absolutelynothelix/drop-kawase-blur-method
config: drop kawase blur method
2023-09-10 22:44:56 +03:00
Arda Atci
367643e98a Merge branch 'yshui:next' into next 2023-08-16 05:24:15 +03:00
Maxim Solovyov
8cc5090a6c string_utils: address some clang-tidy issues 2023-08-11 01:47:43 +03:00
Maxim Solovyov
f773e723be options: address some clang-tidy issues 2023-08-11 01:40:47 +03:00
Maxim Solovyov
34024092d7 picom: address some clang-tidy issues 2023-08-11 01:38:22 +03:00
Maxim Solovyov
ae3c77b1a5 render: address some clang-tidy issues 2023-08-11 01:15:20 +03:00