Commit graph

72 commits

Author SHA1 Message Date
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
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
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
project-repo
b649529f67 Add support for primary selection device protocol
- Fix issue in which copying from firefox fails
2022-05-05 21:37:09 +02:00
project-repo
6e1464127f Double fork to fix xwayland bug 2022-03-29 10:05:15 +02:00
project-repo
b1dd437997 Remove duplicate code 2022-02-18 07:23:44 +01:00
project-repo
c5800b2223 Switch to wlr_scene api 2022-01-26 19:36:10 +01:00
project-repo
fd671ac2dd Apply clang-format 2021-12-25 15:38:31 +01:00
project-repo
aff1de892b Add support for event notifications over ipc 2021-12-25 15:35:31 +01:00
project-repo
bc22892a06 Apply clang-format 2021-12-24 17:54:07 +01:00
project-repo
348925e30a Add configure_message command 2021-12-24 17:52:49 +01:00
project-repo
da1a5898f4 Apply clang-format 2021-12-24 15:56:04 +01:00
project-repo
851a2f8935 Add more advanced multi-output support
* Add commands screen, movetoscreen, movetoprevscreen
  * Add option prio to output command to allow for output priority
    specification
2021-12-24 15:52:25 +01:00
project-repo
2ab4955c46 Add support for default configuration file 2021-10-17 07:50:03 +02:00
project-repo
95af01b119 Fix potential null pointer dereferences 2021-09-20 08:54:00 +02:00
project-repo
cc4780eb71 Apply clang-format 2021-09-19 10:25:34 +02:00
project-repo
4c6bc1b59d Add support for printing input/output identifiers 2021-09-19 10:23:36 +02:00
project-repo
e684a81efb Apply clang-format 2021-09-16 14:31:20 +02:00
project-repo
f9efd40c9d Implement libinput device configuration 2021-09-15 08:37:50 +02:00