Commit graph

97 commits

Author SHA1 Message Date
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
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
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
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
project-repo
e1c89b311b Add support for focussing arbitrary tile 2022-12-29 15:47:49 +01:00
project-repo
46f921f636 Merge ipc fixes into development 2022-12-28 15:58:37 +01:00
project-repo
f2ebea72de Fix ipc syntax 2022-12-28 15:03:37 +01:00
project-repo
c78607a4fd Add event name for dump event 2022-12-27 18:41:16 +01:00
project-repo
1ff7d3f60a Add information on output to dump output 2022-12-27 18:39:26 +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
494fd6444b Update view focus logic 2022-12-26 11:44:05 +01:00
project-repo
baeb39579b Set cursor to box when not in default mode 2022-12-24 14:52:12 +01:00
project-repo
ee71d0bde9 Add check to prevent buffer overflow 2022-12-24 08:03:06 +01:00
project-repo
4e40cf955d Apply clang-format 2022-10-02 11:45:56 +02:00
project-repo
cd01274710 Merge branch 'development' of https://github.com/project-repo/cagebreak into development 2022-10-02 08:26:19 +02:00
project-repo
3247d8cfd1 Apply clang-format 2022-09-30 21:09:51 +02:00
project-repo
ebe4826d12 Fix bugs reported by scan-build 2022-09-30 18:28:49 +02:00
project-repo
a8148690d6 Merge remote-tracking branch 'github/startup_failed' into development 2022-09-25 09:48:49 +02:00
project-repo
3b5b85070f Fix sizing of reconfigured outputs 2022-09-18 10:22:08 +02:00
project-repo
346e021dbb Amend commit 36f00 2022-09-10 18:24:39 +02:00
project-repo
5de047b141 Apply clang-format 2022-09-09 19:03:56 +02:00
project-repo
36f002dbe0 Fix window positioning when switching to fullscreen 2022-09-09 19:01:16 +02:00
project-repo
00c9c4bb65 Fix segfault on workspace switch 2022-05-01 21:48:03 +02:00
project-repo
33877210d9 Fix segmentation fault due to drag icons 2022-04-24 16:12:04 +02:00