Kenny Levinsen
56e97b7d60
config/output: Remove apply_output_config
8 months ago
Kenny Levinsen
3b419020a3
desktop/output: Use apply_output_configs for output mgmt
8 months ago
Kenny Levinsen
98be797356
Use apply_all_output_configs to light up outputs
...
This allows us to test and if necessary degrade the entire backend
configuration to light everything up.
8 months ago
Kenny Levinsen
923f642b70
output/config: Add apply_all_output_configs
...
Apply all output configs as they are. This differs from
apply_output_config_to_outputs, which tries to apply a specific output
config.
8 months ago
Kenny Levinsen
3e03eb3a01
config/output: Introduce apply_output_configs
...
Introduce apply_output_configs, which applies the specified matched
output configs as a single backend commit.
Reimplement apply_output_config_to_outputs using apply_output_configs.
8 months ago
Kenny Levinsen
e2f3ebad8c
config/output: Split apply_output_config
...
Applying an output config has two stages: Atomic application of
wlr_output_state, and applicaiton of non-atomic state like output
layout.
Split the latter out into finalize_output_config for use in a later
commit.
8 months ago
Ferdinand Bachmann
125c74338a
man: document supported modifier names
8 months ago
Andri Yngvason
5a7477cb8f
Implement transient seat management
8 months ago
Simon Ser
dc9f217307
man: document that the scale might be adjusted
...
fractional-scale only supports representing fractions of 120.
References: https://github.com/swaywm/sway/issues/8057
9 months ago
Simon Ser
9139da6149
man: drop fractional scale warning
...
With the fractional-scale protocol, clients can render without
being downscaled.
9 months ago
Simon Ser
3bc75221bc
Re-create renderer when lost
9 months ago
Simon Ser
2b08e79061
server: fix wlr_seat use-after-free on exit
...
Same as [1].
I originally tried to properly handle seat destruction, but that
turned out to be a can of worms [2].
[1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4590
[2]: https://github.com/swaywm/sway/pull/8034
9 months ago
Alexander Orzechowski
2e951163c5
Force bilinear scaling when scaling down
9 months ago
Simon Ser
23389ebd1f
config/output: drop enabling flag
...
This was useful when wlroots backends were updating the current
mode on their own. This is no longer the case.
9 months ago
Simon Ser
3ef5abd405
xdg-shell: send WM capabilities
9 months ago
Simon Ser
4e6d7612ff
xdg-shell: implement popup repositioning
9 months ago
Simon Ser
f2a0e81b24
Fetch input device vendor/product from libinput
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4582
9 months ago
Simon Ser
59f6292383
config: add fallback without env vars for keysym translation XKB keymap
9 months ago
Simon Ser
fd9ab9ee06
config: error out on keysym translation XKB state failure
...
If we can't create the XKB keymap used for keysym translation,
gracefully error out instead of crashing. This can happen if the
XKB_DEFAULT_LAYOUT is set to an invalid value, for instance.
Closes: https://github.com/swaywm/sway/issues/7789
9 months ago
Ronan Pigott
5e18ed3cf0
commands/move: do not force focus on the moved container
...
My code archaeology isn't good enough to determine what this is here
for, but it isn't correct. We should be able to move containers in a
direction without focusing them. AFAICT i3 doesn't do this, so we
shouldn't either.
This fixes ipc commands like move <dir> with criteria that apply to
containers which are not the current focus.
9 months ago
Luofan Chen
2058209a13
input: Rename WLR_INPUT_DEVICE_TABLET_TOOL to WLR_INPUT_DEVICE_TABLET
...
wlroots has changed the naming, causing the following build errors when
building:
error: ‘WLR_INPUT_DEVICE_TABLET_TOOL’ undeclared
9 months ago
llyyr
0b84d82b9a
ipc: add `scratchpad_state` property to GET_TREE
...
See previous commit. This restores ipc parity with i3.
9 months ago
llyyr
2867ef646b
ipc: add `floating` property to GET_TREE
...
i3 has had this property for over a decade but it wasn't documented
until a couple of years ago, so it was likely missed when developing
sway. Add the property to get us closer to ipc parity with i3.
9 months ago
Simon Ser
fca8474e9b
Convert to new pointer enums
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4575
9 months ago
llyyr
469411d484
text_input: don't destroy scene_node twice
9 months ago
Simon Ser
829c75b9c9
Add release script
9 months ago
Simon Ser
fc640d5f6c
Define _POSIX_C_SOURCE globally
...
See discussion in https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4555
9 months ago
Simon Ser
07b0598526
input/text_input: fix dangling listeners
9 months ago
llyyr
d6150b6bb0
input/text_input: parent wlr_box may be uninitialized
9 months ago
Access
7c11c463a3
text_input: Implement input-method popups
...
Co-authored-by: tadeokondrak <me@tadeo.ca>
9 months ago
Aleksei Bavshin
d19810eba8
xdg-activation: distinguish activation and urgency requests
...
Check if the app that requested a token has provided a valid input
serial and a focused surface. Downgrade activation request to urgency
otherwise.
This is mostly in line with what other Wayland compositors decided to
do, and offers a better security than the original logic.
9 months ago
Ronan Pigott
f6d22f8e68
launcher: track the seat in the launcher ctx
...
This is a more suitable place to track the requesting seat, since we are
able to respond appropriately to destroy notifications.
9 months ago
Simon Ser
541e6e260c
Drop unnecessary includes from sway/server.h
10 months ago
Simon Ser
ca40663d42
Fix build with wlroots DRM backend disabled
...
The header is not installed by wlroots when the DRM backend is
disabled. We don't need it here, so don't include it.
Closes: https://github.com/swaywm/sway/issues/7943
10 months ago
Kirill Primak
7a2ff7ba81
view: drop ext_foreign_destroy
...
It's not used and causes a crash when a view is destroyed.
10 months ago
Alexander Orzechowski
09c360d503
layer_shell: Handle popups through popup descriptor
...
We tried to synchronize layer shell popups with the parent layer shell
on commits, but this is subtly wrong because we would only update
the position for one layer shell that was committed, but not any other
layer that might be affected. By moving handling to the scene descriptor
we can iterate all popups and ensure they are synchronized.
10 months ago
Alexander Orzechowski
1846944f04
xdg_shell: Extract struct for popup descriptor
10 months ago
Alexander Orzechowski
1dc661af17
layer_shell: Arrange popups even if exclusive zone doesn't change
10 months ago
Merlin Lex
1b5515400d
ext-foreign-toplevel-list: Implement protocol
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4543
10 months ago
Simon Ser
88b2abf5f2
config: use format_str() instead of hand-rolled snprintf()
10 months ago
Simon Ser
93d391651c
commands: make primary_selection a config-only command
...
It's not possible to switch this at runtime.
10 months ago
Simon Ser
f7a0f06dff
commands: note how xwayland/primary_selection are reset on reload
10 months ago
Simon Ser
ecfef1348a
commands/primary_selection: drop duplicate bool parsing
10 months ago
Violet Purcell
6b2aa83246
sway/config.c: only reset primary_selection at launch
...
Otherwise, an error will be shown whenever reloading due to the value of
primary_selection being reset to true.
10 months ago
Simon Ser
88e99fa84f
Drop old security config remnants
10 months ago
Alexander Orzechowski
ba427a469a
Ensure get_text_width() returns a positive value
...
Closes: https://github.com/swaywm/sway/issues/7940
10 months ago
Tamino Bauknecht
c8676fad54
sway/output: Improve logging of swaybg execvp failure and more checks
...
This doesn't catch the error if a background changing command is
executed via swaymsg, but improves logging.
The additional checks at least propagate if e.g. forking failed.
10 months ago
Simon Ser
e39b0b816b
build: bump version to 1.10-dev
10 months ago
Kirill Primak
f202bc84d2
Chase wlroots!4443
10 months ago
Kirill Primak
a4e85332a1
Chase wlroots!4003
10 months ago