Commit Graph

1940 Commits

Author SHA1 Message Date
Maxim Solovyov
fd15a05166 synchronize packages in readme with packages installed by ci
some packages installed by ci were not listed (e.g. libxcb-util-dev) or
different (e.g. libgl1-mesa-dev) in readme
2023-08-03 22:48:08 +03:00
Maxim Solovyov
6f868e54b9 meson.build: sort required packages alphabetically
and add a comment on why some xcb packages are in the required_packages
array instead of the required_xcb_packages one
2023-07-22 15:28:07 +03:00
Maxim Solovyov
d03cb4ea24 config_libconfig: address some clang-tidy issues, run clang-format 2023-07-22 02:17:13 +03:00
Maxim Solovyov
bd47a47275 config: address some clang-tidy issues 2023-07-22 00:51:46 +03:00
Maxim Solovyov
599594465c backend: address some clang-tidy issues 2023-07-22 00:22:02 +03:00
Maxim Solovyov
dc8def0492 backend: gl: address some clang-tidy issues 2023-07-22 00:16:31 +03:00
Maxim Solovyov
8eff87f2a3 backend: glx: address some clang-tidy issues, run clang-format 2023-07-22 00:11:21 +03:00
Yuxuan Shui
5c03f101f2 Merge pull request #1094 from absolutelynothelix/dual-kawase-optimizations 2023-07-16 13:44:38 +00:00
Yuxuan Shui
961dc998dd Merge pull request #1095 from absolutelynothelix/resize-factor 2023-07-06 14:42:56 +01:00
Maxim Solovyov
e8477e0a73 backend: fix resize factor calculation
the corresponding regions need to be resized once for each window in the
stack above the damaged window including the damaged window itself. we
were off by one.
2023-07-06 16:20:38 +03:00
Maxim Solovyov
5c00ccf4d1 backend: gl: bind default mask texture once in gl_dual_kawase_blur
and set it's uniforms once as well
2023-07-04 22:12:08 +03:00
Maxim Solovyov
0f4cd33b35 backend: gl: bind vertex array objects once in gl_dual_kawase_blur 2023-07-04 21:55:32 +03:00
Yuxuan Shui
4a39423edb Merge pull request #1093 from absolutelynothelix/gl-stream-draw 2023-07-04 19:43:36 +01:00
Maxim Solovyov
7a45e35ca0 backend: gl: set usage of buffer objects to GL_STREAM_DRAW
it pretty much describes how we use buffer objects now

reference: https://docs.gl/gl3/glBufferData
2023-07-04 21:16:34 +03:00
Yuxuan Shui
3d82e76d4b Merge pull request #1010 from absolutelynothelix/update-contributors-list 2023-07-04 17:08:06 +01:00
Maxim Solovyov
a5f0ac3cbd Merge pull request #1087 from yshui/struct-x-connection
core: isolate X connection with error handling into a struct
2023-07-04 18:38:46 +03:00
Yuxuan Shui
6bd780f10f x: don't abort in release for double freeing a xrender picture
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-07-04 16:25:08 +01:00
Yuxuan Shui
1307d9ec70 core: isolate X connection with error handling into a struct
Part of the long running effort to reduce the prevalence of `session_t`.
After this, functions that communicate with X can make use of the error
handling machinary (set_ignore_cookie, set_cant_fail_cookie) without
needing to take a `session_t` parameter.

This commit converts everything to use the new struct `x_connection`,
most of the conversions are mechanical.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-07-04 16:24:53 +01:00
Monsterovich
4e6dddc76e win: don't re-bind mask image when there is already one
Co-authored-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-06-29 23:28:45 +01:00
Maxim Solovyov
d4f72828f7 gitmodules: remove the .gitmodules file
it's unused because we don't have any submodules
2023-06-28 21:30:59 +03:00
Maxim Solovyov
d044e3e386 readme: simplify build instructions
don't initialize submodules (we don't have any) and specify the source
directory explicitly (assume that the current directory is the source
one)
2023-06-28 21:21:45 +03:00
Maxim Solovyov
6496f75359 update contributors list
it's (almost) automatically generated from the git log and the
contributors' emails are (trivially) obfuscated
2023-06-27 17:59:57 +03:00
Maxim Solovyov
d08b6092a3 win: don't include GL/gl.h
it seems unused and removing it addresses a fixme
2023-06-26 18:01:22 +03:00
Maxim Solovyov
0bb45d50d6 Merge pull request #1083 from yshui/freebsd-sched-fix
core: don't check RLIMIT_RTPRIO
2023-06-26 16:06:10 +03:00
Yuxuan Shui
f8cdc81635 core: add comment to set_rr_scheduling
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-06-26 13:25:53 +01:00
Yuxuan Shui
f6625198ba Merge pull request #1080 from absolutelynothelix/address-github-workflow-run-annotations 2023-06-25 18:41:30 +01:00
Yuxuan Shui
e0c14f63c6 core: don't use pthread functions
Don't use pthread_{set,get}schedparam, which requires -lpthread. Use
sched_setscheduler/sched_getparam instead, which is provided by libc.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-06-24 02:59:04 +01:00
Yuxuan Shui
9295f7e4c7 core: don't check RLIMIT_RTPRIO
FreeBSD doesn't have RLIMIT_RTPRIO. So instead we skip this check and
just always try to set our priority to the lowest SCHED_RR priority
available.

Fixes #1082

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-06-24 02:51:07 +01:00
Yuxuan Shui
b85272312a Merge pull request #1011 from absolutelynothelix/decouple-glx-and-egl-backends 2023-06-19 10:19:23 +01:00
Maxim Solovyov
4911cbc24a github: don't checkout the head of a pull request
addresses this annotation:
1 issue was detected with this workflow: git checkout HEAD^2 is no
longer necessary. Please remove this step as Code Scanning recommends
analyzing the merge commit for best results.
2023-06-18 21:37:41 +03:00
Maxim Solovyov
a5591b33a6 github: update actions' checkout to v3
addresses this annotation:
Node.js 12 actions are deprecated. Please update the following actions
to use Node.js 16: actions/checkout@v2. For more information see:
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
2023-06-18 21:33:16 +03:00
Maxim Solovyov
b1cae3d367 github: update codeql action's init, autobuild and analyze to v2
addresses this annotation:
This version of the CodeQL Action was deprecated on January 18th, 2023,
and is no longer updated or supported. For better performance, improved
security, and new features, upgrade to v2. For more information, see
https://github.blog/changelog/2023-01-18-code-scanning-codeql-action-v1-is-now-deprecated/

partially addresses this annotation:
Node.js 12 actions are deprecated. Please update the following actions
to use Node.js 16: actions/checkout@v2, github/codeql-action/init@v1,
github/codeql-action/autobuild@v1, github/codeql-action/analyze@v1. For
more information see:
https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
2023-06-18 21:27:31 +03:00
Maxim Solovyov
15667d6b6e backend: gl: remove references to the glx backend 2023-06-18 19:34:53 +03:00
Maxim Solovyov
689321419b backend: egl: remove references to the glx backend 2023-06-18 19:30:01 +03:00
Yuxuan Shui
dd85c3e175 Merge pull request #1001 from absolutelynothelix/improve-getting-root-back-pixmap 2023-06-18 16:55:02 +01:00
Maxim Solovyov
a377d12a66 x: add a comment on the _XSETROOT_ID root window property usage 2023-06-18 16:09:29 +03:00
Maxim Solovyov
550518c5d1 x: rewrite x_get_root_back_pixmap using root back pixmap atoms
and remove the now unused background_props_str constant
2023-06-18 15:45:06 +03:00
Maxim Solovyov
cbd2d4125c x: rewrite x_is_root_back_pixmap_atom using root back pixmap atoms 2023-06-18 15:32:15 +03:00
Maxim Solovyov
fea1dc794c atom: add atoms associated with the background pixmap 2023-06-18 14:57:50 +03:00
Maxim Solovyov
6b6a8da035 render: remove the unused background_props_str external constant 2023-06-18 14:55:22 +03:00
Yuxuan Shui
7fc9436a0c Merge pull request #1076 from absolutelynothelix/ci-xcb-util 2023-06-17 19:16:38 +01:00
Maxim Solovyov
c02a1e2a30 ci: install the xcb-util dependency
the xcb-util dependency that was introduced recently isn't installed by
the github's ci workflow what results in ci failures
2023-06-17 17:14:10 +03:00
Yuxuan Shui
8ee2162a1b Merge pull request #1075 from Monsterovich/fix-event-handling 2023-06-17 00:33:46 +01:00
Monsterovich
73a366ffe0 Added xcb-util to README 2023-06-17 01:27:20 +02:00
Monsterovich
043703e58f Merge remote-tracking branch 'upstream/next' into fix-event-handling 2023-06-17 01:25:12 +02:00
Nikolay Borodin
c065ad1b8d Refactored meson.build 2023-06-17 01:15:38 +02:00
Nikolay Borodin
56745b64d7 core: event code refactoring 2023-06-17 01:08:47 +02:00
Nikolay Borodin
07303ce2cb core: added proper event handling for XESetWireToEvent 2023-06-16 23:54:37 +02:00
Yuxuan Shui
01bb26012c Merge pull request #1000 from absolutelynothelix/set-texture-on-repeat 2023-06-16 19:02:27 +01:00
Yuxuan Shui
e2ecef92ba Merge pull request #1007 from absolutelynothelix/egl-allow-max-brightness 2023-06-16 18:48:11 +01:00