Commit graph

53 commits

Author SHA1 Message Date
Uks2
8850488f0e
Fix bug in merge_output_configs (#44)
We were accidentally copying angles into status!

Signed-off-by: Tom Greig <tom@tomg.xyz>
2023-04-24 21:04:40 +02: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
7002b00b28 Add missing fields to ipc output 2023-01-06 08:46:08 +01:00
project-repo
4e1c085568 Make compatible with wlroots 0.16 2023-01-05 18:42:23 +01:00
project-repo
1813245e21 Do not emit two events on single command 2023-01-03 08:39:23 +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
989f3bb35a Update ipc output and documention
- Remove quotes
  - Fix event name
2023-01-01 10:58:59 +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
494fd6444b Update view focus logic 2022-12-26 11:44:05 +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
9a60bef105 Apply clang-format 2022-11-28 21:35:31 +01:00
Oliver Friedmann
29943b50e6
Add output scaling (#34)
* feat: output scaling

* chore: update man file

* fix: message when scaling
2022-11-28 21:23:41 +01:00
project-repo
3247d8cfd1 Apply clang-format 2022-09-30 21:09:51 +02:00
project-repo
97ef5306a1 Add ipc message on cursor switching tile 2022-09-25 11:05:51 +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
cda1d645d2 Attempt fallback disable 2022-09-12 07:36:36 +02:00
project-repo
5de047b141 Apply clang-format 2022-09-09 19:03:56 +02:00
project-repo
424cc0af25 Adapt output_clear to wlr_scene 2022-09-05 08:13:46 +02:00
project-repo
2457a37da8 Change to json output for ipc messages 2022-04-24 15:43:53 +02:00
project-repo
e10e09025c Fix non-xwayland build 2022-03-15 20:50:58 +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
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
Cagebreak Signing Key 7
816fdeb953 Update year in copyright notices 2021-12-06 11:08:21 +01:00
Cagebreak Signing Key 3
9623ccd4d4 Apply clang-format 2021-04-19 20:24:03 +02:00
project-repo
20ce9ae3a4 Fix bugs due to updated wlroots 2021-04-08 16:26:49 +02:00
project-repo
b989fe50f0 Fix incompatibilities with wlroots 0.13.0 2021-04-08 07:39:14 +02:00
project-repo
24e0681579 Apply clang-format 2021-03-20 16:31:11 +01:00
project-repo
89d6272775 Adjust focussing algorithm
* Make algorithm which picks which view to focus more stable towards
    repeated insert-remove cycles.
  * Improve run-time of view_get_tile
2021-03-20 16:26:38 +01:00
project-repo
9de597b0c1 Fix bug in surface counting iterator 2021-02-19 14:25:13 +01:00
Cagebreak Signing Key 3
0c4b2c306b Apply clang-format 2021-01-10 19:52:31 +01:00
project-repo
b2193f4c1d Add support for disabling outputs 2021-01-09 09:17:59 +01:00
Cagebreak Signing Key 3
e16d118014 Apply clang-format 2020-10-10 11:29:35 +02:00
project-repo
cc457cdcfb Fix damaging when scanning out views 2020-10-09 13:58:57 +02:00
project-repo
be9cdca75a Fix handling of unmanaged views on output removal 2020-10-09 13:58:41 +02:00
Cagebreak Signing Key 3
70d2448924 Apply clang-format 2020-09-12 17:22:16 +02:00
project-repo
80ada7d14b Invert wlr_xcursor_manager_load return value 2020-09-11 17:27:42 +02:00
project-repo
becd94e6ba Add missing header 2020-09-07 11:49:15 +02:00
Cagebreak Signing Key 3
b0aa100e3e Apply clang-format 2020-09-06 17:41:45 +02:00
project-repo
8778ace0ce Review header includes 2020-09-01 16:57:22 +02:00
project-repo
bcb898238c Fix incompatibilities with wlroots 0.11.0 2020-07-18 22:58:54 +02:00
project-repo
989438a1cb Fix compilation under clang 2020-05-21 19:36:35 +02:00
Cagebreak Signing Key 1
4b383b5574 Fix debug build fanalyzer warnings 2020-05-21 15:57:25 +00:00
project-repo
9ac95ce69c Apply clang-format 2020-05-20 19:35:16 +02:00