Yuxuan Shui
9c3204cc72
utils: add rolling_max
...
For tracking rolling max of a stream of integers.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
bc1f99f2ae
backend: gl: fix use-after-scope
...
'format' was pointing to an array with a shorter lifetime
suggested by @tryone144
Co-authored-by: Bernd Busse <bernd@busse-net.de >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
d21fb34e55
backend: gl: try different back buffer formats
...
Prefer RGB formats first, because they use less memory; but fallback to
RGBA formats, as they are formats required by OpenGL.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
7f18e74b8f
backend: gl: don't add dither where it's not needed
...
If a pixel is perfectly representable as an 8-bit number, don't add
dither. Reduce artifacts where dither is unnecessary.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
2173654fbd
options: add dithered-present option
...
See also 0a2cd0f14e
Related: #602
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
123ef51210
backend: gl: add dither
...
Add bayer ordered dithering when presenting to screen. Reduce banding
when using a strong blur. Also use 16-bit intermediary textures to
preserve precision in the rendering pipeline.
Related: #602
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
4ecc3e65a9
man: fix typo
...
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
4a7a9e8079
Update README.md
...
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Maxim Solovyov
dacadb9fc3
README: fix meson's warnings about setup commands
...
this fixes `WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.` warning while setting up the project
2023-01-23 07:34:35 +03:00
Jake
144e78fd5d
Change dreaw -> draw
2023-01-23 07:34:35 +03:00
Yuxuan Shui
d647ccca16
README: update pcre requirements
...
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
9fe7e65e3e
c2: replace pcre with pcre2
...
Because pcre has been deprecated.[1]
There are subtle changes from pcre to pcre2, so this could be a breaking
change.
Closes #895
[1]: https://www.pcre.org/original/changelog.txt
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Evgeniy Baskov
ad5a042803
win: consider border when creating the mask image
...
With rounded corners, X11 native border and blur enabled, left and
bottom 2*border_width pixels were not blurred, since mask did not
include border_width, only content width and height.
Create mask image with dimensions that include border width.
Signed-off-by: Evgeniy Baskov <j-basevgser@yandex.ru >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
0a82f460e0
backend: egl: fix warning
2023-01-23 07:34:35 +03:00
Yuxuan Shui
49490ab99f
backend: egl: fix undefined symbols on old systems
...
Users with an old EGL version won't be able to use the egl backend. OTOH
we shouldn't prevent them from running picom because of a feature they
won't even use.
Don't assume the existence of EGL 1.5 symbols.
Fixes #945
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
h7x4
9bf39b8d1d
picom.sample.conf: Add egl to backend option doc
2023-01-23 07:34:35 +03:00
Omar Polo
11a195747a
backend: egl: don't assume glEGLImageTargetTexStorage exists
...
Use eglGetProcAddress instead.
Fixes #932
2023-01-23 07:34:35 +03:00
Yuxuan Shui
89690c9843
win: fix leaking of the mask image
...
destroy_win_finish doesn't call win_release_images to free the images,
so we need to add a release_mask call there.
Related: #892
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Omar Polo
935885d396
fix log_debug call
2023-01-23 07:34:35 +03:00
Yuxuan Shui
611f8b80c2
backend: gl: handle blur context creation failure
...
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
8f848c2b1d
backend: gl: fix crash when shadow radius is 0
...
Fixes #927
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
a10a64f984
Fix typo
...
Fixes #922
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
1434881567
win: assert we won't clobber existing mask
...
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
fa21c44ee7
backend: gl: fix shadow from mask
...
The intermediate texture used for shadow from mask calculation did not
properly set the min/mag filter to linear, which is required by the blur
methods. Because they use texture interpolation to accelerate
the convolution calculation.
Fixes #916
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
dbb81b5116
doc: remove mention of raw string pattern
...
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Alp
f7596fd43a
rounded corner delay fix
2023-01-23 07:34:35 +03:00
Yuxuan Shui
f7a950a638
Bump version number
...
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
fbe7ed5699
options: improve usage message printing
...
Laying the usage message out by hand is tedious, also error prone
because the option names are duplicated at 2 places and have to be
consistent.
Create a struct to hold the option names and help messages, and
do layout programmatically.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Yuxuan Shui
0004173ecd
Rename COMPTON_VERSION to PICOM_VERSION
...
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:34:35 +03:00
Stefan Radziuk
1e5de4067b
picom upto date sync with yshui, full anim support
2023-01-23 07:34:35 +03:00
Yuxuan Shui
04b80760d8
win: fix leak in win_bind_mask
...
Related: #905
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-23 07:33:56 +03:00
Arda Atci
a88393a7df
fix lerping on shadows, closes #4
2023-01-23 06:00:50 +03:00
Arda Atci
8e8a62ae29
AUR pkg, closes #15 , thanks fxzzi
2023-01-23 02:46:38 +03:00
Arda Atci
223533acec
fixed open window type anim, closes #12
2023-01-23 02:31:51 +03:00
Arda Atci
bcc7d37546
Merge branch 'yshui:next' into next
2023-01-20 05:44:39 +03:00
Yuxuan Shui
364463feaf
doc: list cases that trigger unredirect
...
unredir-if-possible doesn't just happen for fullscreen windows, be more
accurate.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com >
2023-01-17 02:56:28 +00:00
Arda Atci
c9aee893d2
Merge pull request #14 from yshui/next
...
Merge yshui/next
2023-01-13 23:02:18 +03:00
Yuxuan Shui
1926b6d231
Merge pull request #994 from absolutelynothelix/ensure_glx_context_segfault
2023-01-13 16:55:41 +00:00
Yuxuan Shui
766f9f996f
Merge pull request #986 from absolutelynothelix/fix-creating-eglpixmap
...
fixes https://github.com/yshui/picom/issues/981
2023-01-13 16:55:06 +00:00
Yuxuan Shui
7ac80f980d
Merge pull request #992 from absolutelynothelix/xcb_request_check_memory_leaks
2023-01-13 16:52:22 +00:00
Yuxuan Shui
e18a42ebd0
Merge pull request #985 from absolutelynothelix/free-root-image-properly
...
fixes https://github.com/yshui/picom/issues/982
2023-01-13 16:51:41 +00:00
Yuxuan Shui
2f1e244cd5
Merge pull request #990 from absolutelynothelix/simplify-getting-egl-fbconfig
2023-01-13 16:51:09 +00:00
Arda Atci
a1dcadf81b
Merge pull request #13 from yshui/next
...
Merge yshui/next
2023-01-12 20:19:37 +03:00
Yuxuan Shui
e20a02e67a
Merge pull request #991 from absolutelynothelix/xcb_request_check_checked_functions
2023-01-12 11:01:34 +00:00
Maxim Solovyov
74ab307626
opengl: fix segfault in ensure_glx_context
2023-01-12 06:40:56 +03:00
Maxim Solovyov
0ecfd9fd32
backend: egl: fix creating eglpixmap
...
according to the specification of the EGL_KHR_image_pixmap extension,
if target is EGL_NATIVE_PIXMAP_KHR then ctx must be EGL_NO_CONTEXT,
otherwise, the EGL_BAD_PARAMETER error is generated. source:
https://registry.khronos.org/EGL/extensions/KHR/EGL_KHR_image_pixmap.txt
fixes #981
2023-01-11 13:36:18 +03:00
Maxim Solovyov
81f2bf4c07
picom: fix xcb_request_check memory leaks
2023-01-11 12:35:03 +03:00
Maxim Solovyov
ca64654256
use _checked functions with xcb_request_check
2023-01-10 00:15:49 +03:00
Maxim Solovyov
29342e7cea
backend: egl: simplify getting a framebuffer configuration
...
we're using the first available framebuffer configuration that
meets our needs so there is no need to ask for more than one
2023-01-09 04:25:59 +03:00
Maxim Solovyov
91828be79d
picom: free root image properly
...
fixes #982
2022-12-30 06:16:46 +03:00