Commit Graph

27 Commits

Author SHA1 Message Date
Yuxuan Shui 43de276c19
options: refactor option parsing
The main objective is to remove the need to worry about option value
assignment. Because of the way getopt works, we need to assign a number
to each option, and later match the return value of getopt in a big
switch. We have to make sure to not assign the same number to two
options, and we have to carefully make sure the same number is used in
two different places (once in the options table, once in the switch).
And that is just annoying.

With this commit everything is in one place, and the compiler will yell
at us if we assigned duplicated numbers.

Maybe this can also be a stepping stone for unifying command line
options parsing and config file parsing.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-05-12 17:16:02 +01:00
Yuxuan Shui f2ce27591c
config: remove -n, -a, -s
These are removed long before our time, I don't even know what they are.
We have been rejecting them with an error message for a while too, it's
time to just remove them.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-05-12 13:56:32 +01:00
Yuxuan Shui f510d8dd62
config: remove --shadow-exclude-reg
Deprecated in v2, and we added a better alternative to it.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-05-12 13:52:41 +01:00
Yuxuan Shui cf08a3b7a5
build: make libconfig mandatory
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-04-20 16:25:08 +01:00
Yuxuan Shui 814bcd9806
Update CHANGELOG.md
Mention the use of OpenGL 4.3

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-04-14 09:19:38 +01:00
Yuxuan Shui f7e538fe88
Update CHANGELOG.md 2024-03-11 10:31:45 +00:00
Yuxuan Shui 040cc107f8
Update CHANGELOG.md
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-03-06 08:42:59 +00:00
Yuxuan Shui 153cad6289
Update CHANGELOG.md
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-02-20 16:06:19 +00:00
Yuxuan Shui 198da194e8
c2: remove type specifiers
Same logic as the format specifiers, we just use what the X server
reports, asking the user for the type is just going to be confusing.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-02-18 18:45:20 +00:00
Yuxuan Shui 48f481ee62
c2: remove match target format specifier
It's confusing to me what I should put as format, and the rule might or
might not work if I used the wrong format. In theory this can be used to
write condition that's only true when the specified property has a given
format, in reality I don't think anyone is doing that.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-02-17 16:35:45 +00:00
Yuxuan Shui 81210b15af
chore: fix CHANGELOG.md
Some lines got put at wrong location because of a merge conflict.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-02-17 16:22:14 +00:00
Yuxuan Shui b0fc0c5d59
Update CHANGELOG.md
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-02-16 19:58:42 +00:00
Yuxuan Shui 85bb56e8a6
Update CHANGELOG.md
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-02-14 19:44:06 +00:00
Yuxuan Shui 4f792243c1
Update CHANGELOG.md
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-02-13 10:44:38 +00:00
Yuxuan Shui 0ab3e0740e
Update CHANGELOG.md
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-02-11 23:18:47 +00:00
Yuxuan Shui 642a43acbb
Update README.md and CHANGELOG.md
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-02-11 02:07:07 +00:00
Yuxuan Shui 238c3cc833
vblank: reset SGI_video_sync scheduler if it's getting nonsense
If resetting fails, set a flag so all future schedule calls will fail.

Fixes #1168

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-01-30 22:41:03 +00:00
Yuxuan Shui 0638de5c56
Update CHANGELOG.md
On a second thought, the `corner-radius-rules` is a user noticeable
behavioral change, it should be more prominent.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-01-30 22:40:19 +00:00
Yuxuan Shui bacdb919c7
Update CHANGELOG.md
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-01-29 23:56:30 +00:00
Yuxuan Shui 606844c4bb
Update CHANGELOG.md
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-01-28 21:44:19 +00:00
Yuxuan Shui 4c4df9b918
Update CHANGELOG.md
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-01-21 19:26:00 +00:00
Yuxuan Shui 197b4bd396
Update CHANGELOG.md for v11 release
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-01-20 17:12:34 +00:00
Yuxuan Shui 4c34944d76
Update CHANGELOG.md
I forgot to mention the priviledge needed for real-time scheduling.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-01-18 14:18:58 +00:00
Yuxuan Shui a73ca2dc8d
Merge pull request #1162 from yshui/deprecations-11 2024-01-15 13:41:30 +00:00
Yuxuan Shui 1b8d321c45
Update CHANGELOG.md
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-01-14 22:51:09 +00:00
Yuxuan Shui 30e37dbf09
Update CHANGELOG.md
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-01-14 17:10:20 +00:00
Yuxuan Shui eb3a58a6b0
Add a CHANGELOG.md
The intention is we update this file as PRs are merged, so the workload
when making a new release is reduced.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2024-01-14 16:50:47 +00:00