Commit graph

129 commits

Author SHA1 Message Date
project-repo
dd35e8d38c Unbreak build on FreeBSD (#74)
- Thanks to Jan Beich.
2024-01-27 10:57:51 +00:00
project-repo
d1ae07ef5a Adapt to 2024. 2024-01-01 01:07:15 +01:00
project-repo
cc1bbe1811 Fix dump output syntax 2023-12-27 16:51:54 +01:00
project-repo
374c2bea15 Add message configuration to dump output 2023-12-27 08:40:24 +01:00
project-repo
6a88b53473 Fix memory leak 2023-12-24 17:20:07 +01:00
project-repo
7ecb80bf5c Merge branch 'master' of https://github.com/unsigned-enby/cagebreak into unsigned-enby-master 2023-12-24 17:14:19 +01:00
project-repo
54e187932e Apply clang-format 2023-12-24 14:27:34 +01:00
project-repo
ae0d53310c Reset signal handling when forking 2023-12-24 11:42:10 +01:00
project-repo
4b7f9a8bdd Adapt to wlroots 0.17.0 2023-12-21 19:24:10 +01:00
unsigned-enby
7c8cfdc380 Fixed indentation 2023-11-21 00:00:58 -06:00
unsigned-enby
19a3d1c992 Allow for the configuration of message position 2023-11-20 23:50:27 -06:00
project-repo
d9f893f882 Print whether output is active in dump output 2023-10-31 08:16:27 +01:00
project-repo
7f592ef01a Apply clang-format 2023-09-17 09:59:23 +02:00
project-repo
f9188a2c8b Implement switching from permanent and peripheral
Destroy the output if it is not attached.
2023-09-15 15:38:29 +02:00
project-repo
82cf042819 Add "permanent" to dump 2023-09-15 12:19:20 +02:00
project-repo
6b89645161 Tentative implementation of "permanent outputs" 2023-09-14 15:36:01 +02:00
project-repo
d946b62a4c Release 2.2.0
- Add custom events
- Fix Issue 62 (#46 Github)
- Fix Issue 63 (environment variables test)
- Fix Issue 64 (pointer focus bug)
2023-05-31 21:38:43 +02:00
project-repo
b8a70d662a Apply clang-format 2023-05-16 00:49:48 +02:00
project-repo
679c5562af Add custom event command 2023-05-16 00:49:48 +02:00
project-repo
4f7be9d5cd Release 2.1.0
- Add -bs (bad security) option
- Fix Issue 57 (SPDX spelling error #39)
- Fix Issue 59 (meson install settings)
- Fix Issue 55 (npd)
- Fix Issue 56 (npd)
- Fix Issue 58 (#40 config)
- Improve release procedure
- Add miniscule test suite
- Adjust Cagebreak to wlroots 0.16.2
- New GPG Keys
2023-04-04 14:00:31 +02:00
project-repo
f8df676572 Remove undocumented feature 2023-04-03 21:29:33 +02:00
project-repo
0c0e9aa083 Add bs option 2023-03-06 17:42:40 +01:00
project-repo
699974e910 Apply clang-format 2023-02-19 12:28:55 +01:00
project-repo
9f5a029156 Fix dump output 2023-02-19 09:58:21 +01:00
project-repo
defaaea9d1 Apply clang-format 2023-02-02 21:08:22 +01:00
project-repo
15590ab39a Fix npd 2023-02-02 20:22:16 +01:00
project-repo
b32659963c Fix SPDX-License-Identifier typo 2023-02-02 10:41:24 +01:00
project-repo
3d86ea36b6 Release 2.0.1
Changelog:
  * Fix Issue 54 (#37 on github)
    * Cagebreak did not compile on BSD systems and falsely claimed
      to be POSIX compliant.
2023-01-09 18:48:19 +01:00
Jan Beich
9ad7c921d6
Unbreak build on FreeBSD (#37)
* Disable POSIX compliance when using reallocarray

cagebreak.c:197:11: warning: implicit declaration of function 'reallocarray' is invalid in C99 [-Wimplicit-function-declaration]
                        line = reallocarray(line, line_length, sizeof(char));
                               ^
cagebreak.c:197:9: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
                        line = reallocarray(line, line_length, sizeof(char));
                             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ipc_server.c:248:25: warning: implicit declaration of function 'reallocarray' is invalid in C99 [-Wimplicit-function-declaration]
                client->read_buffer = reallocarray(client->read_buffer,
                                      ^
ipc_server.c:248:23: warning: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion]
                client->read_buffer = reallocarray(client->read_buffer,
                                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Promote -Wimplicit-function-declaration to -Werror

To help find bugs caused by _POSIX_C_SOURCE. Already errors in C++ and C23.

* Fix -Wstrict-prototypes, default in Clang >= 15

In file included from output.c:30:
keybinding.h:136:21: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
keybinding_list_init();
                    ^
                     void
output.c:335:20: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
empty_output_config() {
                   ^
                    void
In file included from seat.c:29:
input_manager.h:19:40: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
input_manager_create_empty_input_config();
                                       ^
                                        void
input_manager.c:92:40: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
input_manager_create_empty_input_config() {
                                       ^
                                        void
keybinding.c:129:21: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
keybinding_list_init() {
                    ^
                     void

See also
11da1b53d8
https://discourse.llvm.org/t/rfc-enabling-wstrict-prototypes-by-default-in-c/60521
2023-01-09 17:20:24 +01:00
project-repo
6dbcb7eda9 Release 2.0.0
This is a major release and includes BREAKING changes!

Breaking Changes:
  * More intuitive switch of focus, next, prev and exchange (#20, 40 in Bugs.md)
    Cagebreak will probably still feel broadly the same though.
  * Remove -r flag - This is replaced by output configuration.
  * Socket disabled by default - The socket is enabled by invoking Cagebreak with the -e flag.
  * Socket permissions restricted to the user of the Cagebreak process (700)
    This may require modification of scripts interacting with the socket with
    different UIDs than the UID of the Cagebreak process.
  * Rename "Current frame" indicator to "Current tile"

Changelog:
  * Move to wlr_scene
  * Add events displaying change over the socket
    * this enables scripting tools
  * Add support for scaling outputs (thanks to Oliver Friedmann)
  * Remove -r flag
  * Add rotation to output configuration
  * Add cursor enable|disable flag
  * Add input keyboard configuration
  * Custom path flag for configuration file
  * Restrict socket permissions to the user running cagebreak (700)
  * Fix Issue #31 (resolve some terminology) 38 in Bugs.md
  * Fix Issue #30 - 39 in Bugs.md
  * Fix Issue #20 - 40 in Bugs.md
  * Fix Issue #12 - 41 in Bugs.md (dump + events over socket)
  * Fix Bugs found via scan-build static analysis (42 - 45 in Bugs.md)
  * Fix Issue #33 - 46 in Bugs.md
  * Fix Issue #32 - 47 in Bugs.md
  * Fix Issue #16 - 48 in Bugs.md
  * Fix Issue #3 - 49 in Bugs.md (disabling keybinding interpretation for specific keyboards is now possible)
  * Fix Issue #26 - 50 in Bugs.md
  * Fix Issue #7 - 51 in Bugs.md (Change cursor to square while Cagebreak is waiting for a key)
  * Fix config bug for some commands - 52 in Bugs.md
  * Fix Issue #35 - 53 in Bugs.md (update to wlroots 0.16.1)
  * Improve FAQ.md (related to some Issues)
  * Disable outputs when unable to set any mode (crashed previously)
  * Add Code of Conduct
  * Print version number on startup
2023-01-08 22:09:15 +01:00
project-repo
48f3a749aa Adjust copyright/licenso info to SPDX standard and 2023 2023-01-07 23:37:06 +01:00
project-repo
d017f53a25 Apply clang-format 2023-01-06 19:10:48 +01:00
project-repo
b3e238e442 Fix quitting on startup 2023-01-06 16:37:07 +01:00
project-repo
7002b00b28 Add missing fields to ipc output 2023-01-06 08:46:08 +01:00
project-repo
74bc47d3a5 Fix off by one 2023-01-06 07:52:54 +01:00
project-repo
4e1c085568 Make compatible with wlroots 0.16 2023-01-05 18:42:23 +01:00
project-repo
2baa1f614e Review cagebreak-socket documentation
- Fix typos
  - Fix output in keybinding.c
2023-01-04 19:18:58 +01:00
project-repo
1813245e21 Do not emit two events on single command 2023-01-03 08:39:23 +01:00
project-repo
0772817055 Print modes as string 2023-01-02 12:15:06 +01:00
project-repo
3773a5f167 Fix compiler warnings 2023-01-02 10:18:14 +01:00
project-repo
02b73fb2b2 Fix fuzzing
- Fix fuzzing build
  - Fix bugs found by fuzzer
2023-01-02 08:35:09 +01:00
project-repo
9d1cafa2f6 Support printing commands as string over ipc 2023-01-02 07:51:51 +01:00
project-repo
3cdc6ec369 Adjust ipc syntax 2023-01-01 21:35:27 +01:00
project-repo
989f3bb35a Update ipc output and documention
- Remove quotes
  - Fix event name
2023-01-01 10:58:59 +01:00
project-repo
f640d75ba5 Remove quotes around integers in ipc output 2023-01-01 10:50:24 +01:00
project-repo
c806e4f0fe Add tile_ids to output move_view_to_cycle_tile 2022-12-31 11:20:52 +01:00
project-repo
7da953ca20 Add option for disabling cursor 2022-12-30 19:45:25 +01:00
project-repo
0c335e84d3 Add input devices to dump output 2022-12-30 19:14:04 +01:00
project-repo
18e6569712 Add support for customizing keyboard repeat info 2022-12-30 07:42:23 +01:00
project-repo
c83aed6728 Remove view_title
- Do not set window title, as it cannot be read
  - Print PID in event instead of title to prevent information leaks
2022-12-29 16:09:33 +01:00