Commit Graph

10 Commits

Author SHA1 Message Date
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