Commit graph

102 commits

Author SHA1 Message Date
project-repo
58e6cb5339 Fix output ordering 2024-01-11 20:13:13 +01:00
project-repo
db8dee68f5 Fix geometry of fullscreen views 2024-01-08 19:28:59 +01:00
project-repo
99b643a65b Fix segfault 2024-01-07 08:35:39 +01:00
project-repo
d1ae07ef5a Adapt to 2024. 2024-01-01 01:07:15 +01:00
project-repo
bb3d848537 Remove unnecessary fanalyzer pragmas. 2023-12-28 00:11:11 +01:00
project-repo
0aaf2d070b Fix gamma control 2023-12-25 16:50:53 +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
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
7f592ef01a Apply clang-format 2023-09-17 09:59:23 +02:00
project-repo
65b6e9e427 Fix problems with automatic output configuration 2023-09-15 12:10:20 +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
88378f38ce Silence clang analyzer false positive 2023-03-27 21:45:28 +02:00
project-repo
0c0e9aa083 Add bs option 2023-03-06 17:42:40 +01:00
project-repo
567f12c29f Apply clang-format 2023-02-09 22:15:28 +01:00
project-repo
ba590d7d89 Merge branch 'development' of https://github.com/project-repo/cagebreak into development 2023-02-08 19:22:38 +01:00
project-repo
c23c899515 Fix loading of default config file 2023-02-08 19:21:15 +01:00
project-repo
73fcbbf142 Change some output from stderr to stdout 2023-02-02 20:37:42 +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
226d471794 Update xwayland seat on focus 2023-01-06 15:13:24 +01:00
project-repo
4e1c085568 Make compatible with wlroots 0.16 2023-01-05 18:42:23 +01:00
project-repo
afe4a8385b Fix scan-build warnings 2023-01-01 21:35:36 +01:00
project-repo
026768ef3c Merge remote-tracking branch 'origin/development' into development 2022-12-30 21:45:35 +01:00
project-repo
80073faac8 Alphabetize -h option 2022-12-30 21:43:26 +01:00
project-repo
78b287153c Fix version reporting 2022-12-30 21:34:14 +01:00
project-repo
8d78a17320 Change socket to opt-in 2022-12-30 19:15:26 +01:00
project-repo
3a66943513 Add option for disabling socket 2022-12-29 16:20:12 +01:00
project-repo
e1c89b311b Add support for focussing arbitrary tile 2022-12-29 15:47:49 +01:00
project-repo
8e735264d1 Reformat usage message 2022-12-28 17:57:53 +01:00
project-repo
f7d9e69d31 Add option for specifying config file path 2022-12-28 17:40:34 +01:00
project-repo
4d5acdb4a6 Fix config file parsing 2022-12-28 16:54:59 +01:00
project-repo
46f921f636 Merge ipc fixes into development 2022-12-28 15:58:37 +01:00
project-repo
ebbc3f2431 Adjust ipc
- Handle SIGPIPE
  - Change syntax to null-terminated strings
2022-12-28 14:40:09 +01:00
project-repo
fef49429f5 Remove maximal line length in configuration file 2022-12-28 10:08:23 +01:00
project-repo
52195268e6 Implement keyboard configuration
- Allow disabling command interpretation for specific keyboards
2022-12-27 14:50:52 +01:00
project-repo
32095b4253 Refactor output configuration
* Allow independent rotation of different outputs
  * Allow specification of scale independent of mode
  * Clean up output configuration code
2022-12-26 08:14:57 +01:00
project-repo
ed575c36ab Fix behaviour on config file load failure 2022-12-24 16:38:29 +01:00
project-repo
baeb39579b Set cursor to box when not in default mode 2022-12-24 14:52:12 +01:00
project-repo
ebe4826d12 Fix bugs reported by scan-build 2022-09-30 18:28:49 +02:00
project-repo
5de047b141 Apply clang-format 2022-09-09 19:03:56 +02:00
project-repo
aa8f6b4208 Print version number on startup 2022-09-09 18:43:56 +02:00
project-repo
6461894cbe Fix default bg color 2022-09-05 08:14:21 +02:00