Alexander Orzechowski
6d7b1321db
scene_graph: Port container server side decorations
10 months ago
Alexander Orzechowski
188811f808
scene_graph: Port layer_shell
10 months ago
Alexander Orzechowski
5b8b505af5
input: Query scene graph for relevant surface/node intersections
10 months ago
Alexander Orzechowski
946fc80945
Introduce sway_text_node
...
This is a helper on top of a wlr_scene_buffer that will handle text
rendering for us.
10 months ago
Alexander Orzechowski
869baff252
renderer: Remove in favor of scene_graph
10 months ago
Alexander Orzechowski
bac3ab5526
seat: Remove dead seatop_render function
10 months ago
Alexander Orzechowski
9a57966606
scene_graph: Port ext_session_v1
10 months ago
Alexander Orzechowski
0639bde9fb
scene_graph: Port seatop_move_tiling indicators
10 months ago
Alexander Orzechowski
c640c3015f
scene_graph: Port seat drag icons
10 months ago
Alexander Orzechowski
9c17cba0b2
renderer: Render scene_graph
10 months ago
Alexander Orzechowski
0e1a02bf0a
scene_graph: Introduce sway_scene_descriptor
...
Across a wayland compositor, there are multiple shells: It can be
a toplevel, or a layer_shell, or even something more meta like a drag
icon or highlight indicators when dragging windows around.
This object lets us store values that represent these modes of operation
and keep track of what object is being represented.
10 months ago
Alexander Orzechowski
1b09238645
scene_graph: Use built-in linux dmabuf feedback handling
10 months ago
Alexander Orzechowski
1eb16d1367
scene_graph: Maintain `wlr_scene_node`s for the sway tree.
10 months ago
Alexander Orzechowski
dbd2fbf430
view: init function should return a success bool
10 months ago
Alexander Orzechowski
b4d7e84d38
desktop: Rename layers to shell_layers
...
This code will be deleted later, but for the time being rename
it so it doesn't conflict with future properties.
10 months ago
Kirill Primak
2c69e19fd3
layer-shell: don't configure uninitialized surfaces
10 months ago
Kirill Primak
8d1b0cecd9
layer-shell: wait for an initial commit before configuring
10 months ago
Kirill Primak
904d256581
layer-shell: don't try to unmap on destroy
...
A surface is guaranteed to be unmapped on destruction.
10 months ago
Simon Ser
c5fd8c050f
Mark DRM lease protocol privileged
...
Allowing sandboxed clients to request DRM leases has security
implications.
11 months ago
Simon Ser
7e69a7076f
Drop wl_drm
...
See https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4397
11 months ago
Simon Ser
fa294a9094
readme: add swaybg as optional dep
11 months ago
Simon Ser
95265fba59
input: reconfigure send_events on output hotplug
...
Closes: https://github.com/swaywm/sway/issues/7890
11 months ago
Billli11
0aceff7469
Remove wlr_presentation in sway_server struct
...
It is no longer in use.
11 months ago
Bill Li
64d644f0da
Chase wlroots!4482
11 months ago
Simon Ser
22d0dd8bde
Check wlr_pointer_constraint_v1_state.cursor_hint.enabled
...
Update for a wlroots breaking change which resets the committed
mask.
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4478
11 months ago
Alexander Orzechowski
bbabb9aae8
output: Destroy when output layout is destroyed
...
Since output layout is destroyed when the wayland display is destroyed
we run into a destroy listener order problem: Either the display starts
destroying the outputs first, in which case we're good: The existing
handling will clean up. However, things go wrong if the display decides
to destroy the output layout first. In this case, sway will hold
invalid references to the output layout as part of each output so that
when it finally goes to destroy them, sway will dereference destroyed
output layout bits.
Ref: https://github.com/swaywm/sway/pull/6844#issuecomment-1843599513
12 months ago
Simon Ser
c6edbb7e5a
input/seat: simplify seat_is_input_allowed()
...
Use an early return to make the code more readable.
12 months ago
Simon Ser
e8a0205607
input/seat: rename seat_set_exclusive_client()
12 months ago
Simon Ser
607b8aed0c
input/seat: inline seat_set_exclusive_client() with NULL client
12 months ago
Simon Ser
7ad8c80bfe
input/{keyboard,switch}: rename input_inhibited variable to locked
...
This is more descriptive now.
12 months ago
Simon Ser
dbd70faf2e
input/seat: drop exclusive_client
...
This was a input-inhibit concept.
12 months ago
Simon Ser
a6ef12d968
Detect proprietary DisplayLink drivers
...
evdi is open-source, but is just some condom for their proprietary
user-space driver.
12 months ago
Simon Ser
ff07eab85b
Detect Nvidia proprietary driver via drmGetVersion()
...
This is less punishing for users with the Nvidia driver loaded but
not used by Sway (e.g. for CUDA).
12 months ago
Simon Ser
b81c4da494
Drop fglrx detection
...
This ancient driver doesn't do KMS. So we were never able to run
with it anyways.
12 months ago
Tamino Bauknecht
255ff665c5
sway: raise error on non-accessible background file
12 months ago
Simon Ser
bf2b79b284
desktop/xwayland: correctly handle association on o-r change
...
When override-redirect changes, we need to setup/teardown listeners,
just like we do for map.
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3773
12 months ago
mrusme
ae3acf26f8
Update sway.5.scd
...
Make it extra extra extra clear, because I had to stumbled upon https://github.com/swaywm/sway/issues/3292 to understand this.
12 months ago
Alexander Orzechowski
f12023b1a2
Don't destroy output layout on exit
...
wlroots will destroy this object itself.
12 months ago
Sergei Trofimovich
2cd73a33c2
sway/config.c: use `memcpy()` for known buffer size
...
`gcc-14` added a new warning around dangerous use of `strncpy()` withi
known overflow:
../sway/config.c: In function 'do_var_replacement':
../sway/config.c:983:33: error: '__builtin___strncpy_chk' specified bound depends on the length of the source argument [-Werror=stringop-truncation]
983 | strncpy(newptr, var->value, vvlen);
| ^
../sway/config.c:971:45: note: length computed here
971 | int vvlen = strlen(var->value);
| ^~~~~~~~~~~~~~~~~~
It's a bit fishy to rely on truncating behaviour of `strncpy()`. The
change uses `memcpy()` as more explicit way to express copy of `vvlen`
bytes.
1 year ago
apreiml
bc7d15d64d
Update README.de.md to match the EN one
1 year ago
Manuel Stoeckl
e633fe0b40
common: move load_image to swaybar
...
swaynag, swaymsg, and sway do not use this function and are
unlikely to in the future.
1 year ago
Manuel Stoeckl
439122e887
common: rename load_background_image to load_image
1 year ago
Manuel Stoeckl
39b9c0d6ba
common: Drop unused render_background_image
...
And the associated background_mode enum.
1 year ago
Kirill Primak
47e6a1164c
xdg-shell: chase events update
1 year ago
Simon Ser
128b6253a9
Pass wl_display to wlr_output_layout
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4310
1 year ago
Simon Ser
fd6d6f1d97
Add wlr/util/transform.h includes
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4097
Closes: https://github.com/swaywm/sway/issues/7830
1 year ago
llyyr
a946b1aecf
Chase wlroots!4440
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4440
1 year ago
llyyr
4ad15a4015
meson: bump wlroots version after 0.17.0 release
1 year ago
Matt Fellenz
bff991dfdc
Use locale time format for default bar command
1 year ago
Simon Ser
9d666a08e1
Fix reference to wlr_output_event_commit.committed
...
This has been dropped from wlroots. Previous commit missed that.
1 year ago