Commit Graph

22 Commits

Author SHA1 Message Date
Yuxuan Shui 4b04a53b83
ci: use github actions for OpenBSD build
sr.ht CI broke.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-05-15 20:19:15 +01:00
Maxim Solovyov 28cb220b5b
Merge pull request #1194 from yshui/update-clang
ci: update git-clang-format
2024-02-14 20:37:34 +03:00
Yuxuan Shui c6db632d9d
ci: update git-clang-format
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-02-14 17:29:11 +00:00
Maxim Solovyov 466fb4c9e0
ci: update github actions to use node.js 20 2024-02-14 00:20:45 +03:00
Maxim Solovyov 013c03c9a5
don't require the libevdev-dev package in readme and install by ci
it doesn't seem to be used
2023-08-03 22:58:02 +03:00
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 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 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 cee1287562
github: update git-clang-format-lint action
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2023-01-29 16:23:26 +00:00
Maxim Solovyov 986b3c1cb3
core: drop xinerama
there are two x extensions for working with monitors (especially
multiple): xinerama and randr. xinerama is old, feature-poor and in
general isn't used anymore compared to the randr: new, feature-rich and
widely-used. for some reason we were using both of them, so let's drop
xinerama to keep things simple, clean and small. and to be modern.

the drop was done in three steps:
* first step was to replace all the xinerama-based code with the
  randr-based one and to replace or remove all the xinerama mentions;
* second step was to replace the xinerama's terminology with the
  randr's one. xinerama was referring only to the word "screen", while
  randr refers to multiple words and i think the word "monitor" is the
  most suitable for us and, hopefully, clear both to a contributor and
  to an end user;
* third step was to refactor the new randr-based code if needed and to
  address related todo's (mostly about moving related functions
  elsewhere).

all the steps were done well except addressing a leftover todo about
moving the win_update_monitor function to the x.c which wasn't done.

the xinerama-shadow-crop option was renamed to crop-shadow-to-monitor,
but it's previous name is still accepted, has effect and the
deprecation message is printed to preserve backwards-compatibility.
2023-01-29 10:51:12 +03:00
Yuxuan Shui 37ecb4b496
core: detect screen off
Use the DPMS extension to detect if screen is turned off, and unredirect
if it is. This also helps working around the problem where OpenGL
buffers lose data when screen is turned off, causing screen to flicker
later when it turns back on if use-damage is enabled.

Unfortunately the DPMS extension doesn't define an event, so we have to
periodically poll the screen state.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-12-19 08:52:18 +00:00
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 aa316aa360
ci: fix codeql tasks
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2022-02-13 14:07:12 +00:00
Yuxuan Shui 1b979212e8
github: update git-clang-format-lint
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2021-10-25 19:42:22 +01:00
Yuxuan Shui 48b7d7c27d
Update coding style workflow
Alpine stopped packaging git-clang-format in newer versions.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2021-06-20 06:56:53 +01:00
Yuxuan Shui 453a9e8232 github: codeql: only install dependencies for cpp analysis
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2020-10-01 14:01:46 +01:00
yshui aa1a32db16 github: enable CodeQL workflow
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2020-10-01 13:32:33 +01:00
Yuxuan Shui 900b6893d6 github action: update git-clang-format-lint
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2020-04-10 04:09:07 +01:00
Yuxuan Shui b37db3e051
github actions: update coding style checks
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2020-04-09 18:09:19 +01:00
Yuxuan Shui be0d4b9681 github action: check coding style of commits
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2020-04-09 01:14:34 +01:00