Commit graph

7232 commits

Author SHA1 Message Date
jlo62 fecd2cb323
Merge branch 'master' into sensitivity 2023-11-21 14:31:13 +01:00
NemuiBanila c3ec141b34 seat: Fix cursor theme reload for tablet tool 2023-11-21 11:35:49 +01:00
Lina Banik f7a40cfa2f seat: Fix reloading cursor theme after change
This reverts commit afde6369
"seat: avoid unneeded reloading xcursor theme".
Always avoiding to reload the xcursor theme prevents reloading the
cursor even when this is desired. Instead seat_configure_xcursor
can determine whether a full reload is necessary.

To stay with the spirit of the reverted change, cursors are only fully
reloaded, if the theme has changed.

Fixes #6931
2023-11-21 11:35:49 +01:00
jlo62 92df8b03df
Merge branch 'swaywm:master' into sensitivity 2023-11-21 08:22:19 +01:00
Simon Ser 5c99b98805 input/input-manager: drop input_manager_configure_all_inputs
This is now unused.
2023-11-16 16:29:07 +01:00
Simon Ser 7036769bea Only reconfigure input mappings on output change
Fully reconfiguring all input devices on output change takes a
loooong time. Let's just reconfigure what we need: only mappings
depend on outputs.
2023-11-16 16:29:07 +01:00
Simon Ser caa92ddee8 input/seat: rename seat_apply_input_config
seat_apply_input_mapping is a lot more descriptive.
2023-11-16 16:29:07 +01:00
Simon Ser 01dcad80e1 input/seat: don't configure mappings for switches
Switch devices cannot be mapped to an output/region, stop trying
to do so.
2023-11-16 16:29:07 +01:00
jlo62 2fef636f74
Merge branch 'master' into sensitivity 2023-11-07 15:31:45 +01:00
Sergei Trofimovich 020a572ed6 swaynag/config.c: fix build against gcc-14 (-Walloc-size)
`gcc-14` added a new `-Walloc-size` warning that makes sure that size of
an individual element matches size of a pointed type:

        https://gcc.gnu.org/PR71219

`sway` triggers it on `calloc()` calls where member size is used as
`1` (instead of member count):

    swaynag/config.c:169:65: error: allocation of insufficient size '1'
     for type 'struct swaynag_button' with size '48' [-Werror=alloc-size]
      169 | struct swaynag_button *button = calloc(sizeof(struct swaynag_button), 1);
2023-11-03 13:25:27 +01:00
jlo62 539cf9f3e8
Merge branch 'master' into sensitivity 2023-10-31 14:38:19 +01:00
Bill Li 6f6b82793d chase wlroots!4411
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4411
    fix #7802
2023-10-31 09:51:19 +01:00
Kirill Primak f2425b4fd6 xdg-shell: send maximized if tiled isn't supported
wlroots doesn't do it automatically anymore.
2023-10-29 17:21:18 +01:00
Dudemanguy 647521244a xdg_shell: don't update wlr_toplevel if the container has no size yet
3d5ae9813d added logic to change the
underlying wlr_toplevel size for floating containers, but it does it
even if the container has no actual coordinates yet. This doesn't really
make sense to update the toplevel size in this case since there's many
things that could affect the initial coordinates (sway commands,
fullscreen state, etc.). Skip this by doing a crude check to see if the
current container state has any width.
2023-10-27 17:36:32 -07:00
jlo62 8ff53f9094
Merge branch 'master' into sensitivity 2023-10-24 20:53:58 +02:00
Kirill Primak 47263aca28 view: check if the buffer was uploaded on save
wlr_surface_has_buffer() is insufficient; if a client has committed a
buffer but it couldn't be applied, NULL deref happens in the next line.
2023-10-24 14:35:57 +02:00
Tamino Bauknecht 0dfaf7ea63 config/output: Allow approximation of output refresh rate
Previous behavior was that only if resolution and refresh rate match
exactly, the mode was accepted. As fallback, the mode with the highest
refresh rate and the same resolution was chosen.

New behavior is that the mode with the closest match for the refresh
rate is used with a limit of up to 1Hz. The fallback behavior stays the same.

Additionally, the logging was made more verbose.
2023-10-23 11:05:08 +02:00
Tamino Bauknecht f2425b5163 gitignore: Ignore clangd-generated directory .cache/ 2023-10-23 11:05:08 +02:00
Alexander Orzechowski 4326a26ad6 Chase wlroots!4331 2023-10-06 14:39:12 +03:00
iff 8a8fb76ec1 Update sway-input.5.scd 2023-10-05 10:04:32 +02:00
jlo62 55a02c7d6b
Merge branch 'master' into sensitivity 2023-10-05 06:27:19 +02:00
Simon Ser 7cf4e1d5c6 Drop support for KDE's idle protocol
We support the standard idle-notify protocol since Sway 1.8.
2023-10-05 00:01:54 +02:00
jlo62 026b3a6324
Update ipc-json.c 2023-09-18 18:14:14 +02:00
jlo62 a441c20a46 Revert "Update ipc-json.c"
This reverts commit 48c0c0b9d6.
2023-09-18 18:03:14 +02:00
jlo62 db98bdd4d2 Revert "Update ipc-json.c"
This reverts commit 3149f533fe.
2023-09-18 18:02:56 +02:00
jlo62 3149f533fe
Update ipc-json.c 2023-09-18 12:37:18 +02:00
jlo62 48c0c0b9d6
Update ipc-json.c 2023-09-18 12:13:47 +02:00
jlo62 475e289226
Update input.c 2023-09-18 11:56:41 +02:00
jlo62 47ac4cd87e
Update cursor.c 2023-09-17 20:35:06 +02:00
jlo62 bda7f681e7
Update cursor.c 2023-09-17 20:32:36 +02:00
jlo62 23ad8be535
Update cursor.c 2023-09-17 20:31:03 +02:00
jlo62 3996e54dfb
Update cursor.c 2023-09-17 20:29:11 +02:00
jlo62 a2c9e8f7e1
Update cursor.c 2023-09-17 20:27:32 +02:00
jlo62 f2ebfc25b7
Update cursor.c 2023-09-17 20:26:44 +02:00
jlo62 094c0004a6
Update cursor.c 2023-09-17 20:20:38 +02:00
jlo62 9932197d16
Update sway-ipc.7.scd 2023-09-17 19:37:18 +02:00
jlo62 ec7e1681fc
Update sway-input.5.scd 2023-09-17 19:36:27 +02:00
jlo62 4f5753dd6b
Update meson.build 2023-09-17 19:35:38 +02:00
jlo62 62266d5da7
Update ipc-json.c 2023-09-17 19:35:00 +02:00
jlo62 5305ccab0a
Update input-manager.c 2023-09-17 19:30:03 +02:00
jlo62 ec3e47df91
Update cursor.c 2023-09-17 19:29:09 +02:00
jlo62 4d87b7ba9e
Update input.c 2023-09-17 08:04:46 +02:00
jlo62 0bb8dd8c85
Create sensitivity.c 2023-09-17 07:41:16 +02:00
jlo62 fef41686d6
Update input-manager.h 2023-09-17 07:39:19 +02:00
jlo62 919ea1531a
Update config.h 2023-09-17 07:37:55 +02:00
jlo62 84dd73d021
Update commands.h 2023-09-17 07:34:03 +02:00
Ashraf b3519c2d2f Translate README to Arabic 2023-09-14 13:37:50 +02:00
Jan Beich 68caa8deba readme: Stop recommending setuid bit for non-logind systems
- Optional since Sway 1.6 per swaywm/wlroots@bad1e9afa8
- Deprecated in Sway 1.7 per 67d3d952b6
- Removed in Sway 1.8 per e5728052b5
- Ignored in future versions (keeps root priveleges)
2023-09-13 10:21:59 +02:00
Manuel Stoeckl 8edc48f6dd sway/server: Fix null pointer crash when Xwayland disabled 2023-09-10 08:33:10 +09:00
Johan Sköld d952ce403e i3 compat: Adding support for the all criteria
Matches all views. i3 PR: https://github.com/i3/i3/pull/4460

Fixes #7110
2023-09-07 10:42:54 +09:00