Alexander Orzechowski
59c27c94d3
gamma_control_v1: Reset dirty flag
2 years ago
33KK
be14cd96cd
Fix `bindsym --to-code` not respecting input configs
...
Fixes #7535
2 years ago
Shaked Flur
6a1c176d14
man: add --inhibited and --no-repeat to bindsym and bindcode usage
2 years ago
Simon Ser
65b1a6964c
desktop/output: fix damage bitfield in wlr_output_state
2 years ago
Simon Ser
f3b8c9feee
desktop/output: use detached output state for page-flips
...
This avoids relying on the implicit wlr_output.pending state.
2 years ago
Simon Ser
b1b3563d54
Handle gamma-control-v1 set_gamma events
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4046
2 years ago
Erik Reider
913a7679cb
Add support for wlr-layer-shell ON_DEMAND keyboard interactivity
...
This allows for layer shell surfaces to receive focus while the surface is explicitly focused, i.e allowing
text fields to receive keyboard input just like a regular surface.
2 years ago
Artturin
7ab8cb2ee6
chase wlroots wlr_renderer_begin_buffer_pass change
...
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4159
> ../sway/desktop/output.c:618:47: error: too few arguments to function 'wlr_renderer_begin_buffer_pass'
> 618 | struct wlr_render_pass *render_pass = wlr_renderer_begin_buffer_pass(
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 years ago
Kirill Primak
b5cb49bce9
xwayland: fix mapped state check in OR handlers
2 years ago
Kirill Primak
c001a57e8b
lock: listen to the correct map signal
2 years ago
Kirill Primak
c9e1dab318
chore: chase wlroots map logic unification
2 years ago
Kirill Primak
72881b5d12
xwayland: don't rely on event source being data
...
This pattern is being slowly removed from wlroots.
2 years ago
Erik Reider
48d6eda3cb
Fix layer old damage not being offset by the monitor layout coords
2 years ago
hrdl
01b0c11394
seatop_down: Call seatop_begin_default after sending touch events
...
This is consistent with pointer tablet and button events.
Fixes #7577 .
2 years ago
Simon Ser
19cc36accc
render: fix titlebar texture clipping
...
We need to provide an unclipped dst_box.
Fixes: https://github.com/swaywm/sway/issues/7573
Regressed by: https://github.com/swaywm/sway/pull/7552
2 years ago
Kenny Levinsen
0a951517ae
render: Clear using wlr_output dimensions
...
Clear was done using sway_output's logical dimensions, instead of the
wlr_output physical dimensions. This meant that when output scaling was
applied, only a part of the screen would be cleared.
Use the wlr_output dimensions instead.
Regressed by: https://github.com/swaywm/sway/pull/7552
2 years ago
Kenny Levinsen
393c29fc59
render: Apply clip to rendered texture correctly
...
The new wlr_render_pass API provides src_box, dst_box and clip
parameters for texture rendition. Rather than clipping the dst_box,
which control the projection matrix and leads to compression, intersect
the damage and clip box and pass these as a clip parameter.
Fixes: https://github.com/swaywm/sway/issues/7579
Regressed by: https://github.com/swaywm/sway/pull/7552
2 years ago
Mukundan314
a79994e119
swaybar: always subscribe to mode and workspace
...
always subscribe to mode and workspace events, since we might need them
after bar config updates even if we don't need them initially.
2 years ago
hrdl
3cd7c71780
handle_touch_cancel: fix begin default
...
I forgot to call seatop_begin_default in
e8f7551e46
.
2 years ago
hrdl
e8f7551e46
Add support for touch cancel events
2 years ago
Alexander Orzechowski
db7638a0e5
Don't crash if there is no damage during render
2 years ago
Alexander Orzechowski
029b99b482
render: Use wlr_render_pass
2 years ago
Alexander Orzechowski
07cdf6ccd0
render: Don't pass matrix into render_texture
2 years ago
Alexander Orzechowski
d5cc474aef
render: pass rendering state together in a struct
...
This lets us easily add rendering state that we need in the future
2 years ago
Alexander Orzechowski
33cfdbe886
xdg_shell: Fix crash if popup generates while toplevel is in the scratchpad
2 years ago
Simon Ser
08c1946d71
Use format_str() throughout
2 years ago
Simon Ser
ac8962eb62
common/gesture: use format_str()
...
We already had a similar function in there.
2 years ago
Simon Ser
ea279f4df3
swaynag: add printf attribute to swaynag_log()
2 years ago
Simon Ser
96cebb4fe6
config: add printf attribute to config_add_swaynag_warning()
2 years ago
Simon Ser
a7b50f6c9c
commands: add printf attribute to cmd_results_new()
...
And fix the resulting build failures.
2 years ago
Simon Ser
d6915f6428
commands/floating_minmax_size: fix error strings
...
cmd_results_new() does not take the command name as argument.
2 years ago
Simon Ser
bd58df61ef
pango: add printf attribute
...
This allows the compiler to catch mismatches between the format
string and the arguments passed in.
Need to add -Wno-format-zero-length because we pass an empty string
on purpose in swaybar/render.c.
2 years ago
Simon Ser
aab4c9da5f
Add format_str() and vformat_str()
...
Simple helpers to allocate and format a string.
2 years ago
Simon Ser
4118c49349
Use output_match_name_or_id() in workspace functions
2 years ago
Simon Ser
fcec581748
Use output_match_name_or_id() in apply_output_config_to_outputs()
2 years ago
Simon Ser
04904ab9a5
Use all_output_by_name_or_id() in merge_id_on_name()
...
No need to iterate over the outputs manually.
2 years ago
Simon Ser
8d95638df6
Introduce output_match_name_or_id()
...
Reduces code duplication.
2 years ago
Elyes Haouas
63f9bdf001
Fix old style function definitions
...
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
2 years ago
Simon Ser
ab4f460597
Set output damage during direct scan-out
...
During direct scan-out, pass the damaged region to the wlroots
backend.
2 years ago
Simon Ser
777df22377
Skip direct scan-out commit when damage is empty
...
When there is no damage, no need to perform an output commit, even
when direct scan-out is used.
2 years ago
Simon Ser
5e847fe3c8
Pass version to wlr_compositor_create()
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3696
2 years ago
Alexander Orzechowski
dadf3e9b78
Chase wlroots!4067
2 years ago
Simon Ser
e8fb7f53b8
Remove duplicate wlr_damage_ring_set_bounds() call
...
We already do this in handle_commit().
2 years ago
Erik Reider
fa7b686e61
Fix damage-ring bounds not being set when unplugging -> plugging in monitor
...
#7524 was a partial fix. Seems like this is still an issue when
unplugging and plugging the monitor back in.
Closes: https://github.com/swaywm/sway/issues/7528
2 years ago
Alexander Orzechowski
9cf66e8c7c
swaybar: Lift background clearing out of main rendering function
...
This avoids us from using a bogus background_color value that
mutates as swaybar renders things and deciding opacity depending on
that.
Also remove a redundant full surface clear. Just directly write our
desired background color.
2 years ago
Alexander Orzechowski
5d5b21dcce
swaybar: Set opaque region properly
...
The opaque region is set incorrectly if updated on-the-fly if switching from an opaque to a non opaque background.
2 years ago
Simon Ser
dee032d0a0
ipc: add LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM entry
...
This was introduced in the last libinput release.
Fixes the following error:
../sway/ipc-json.c:928:17: error: enumeration value 'LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM' not handled in switch [-Werror=switch]
928 | switch (libinput_device_config_accel_get_profile(device)) {
| ^~~~~~
2 years ago
Ronan Pigott
6701b90c55
Add a .mailmap file
2 years ago
Simon Ser
4f6e559dec
man: deprecate seat cursor move/set/press/release
...
The Wayland protocol better serves this purpose, and is supported
by more compositors.
2 years ago
Erik Reider
ac1ed638e9
Init the damage_ring bounds on output creation
...
Otherwise the initial bounds would be `INT_MAX` until `handle_mode` or `handle_commit` is called :)
2 years ago