Alexander Orzechowski
5f0801b6f2
container: Don't track outputs
...
The scene graph abstraction does this for us
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
1e018e72b4
Delete old damage tracking code
...
The new scene graph abstraction handles this for us.
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
06ad734e70
scene_graph: Port view saved buffers
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
6e5fc4c2aa
scene_graph: Port xwayland
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
b38ed8b479
scene_graph: Port xdg_shell
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
08c484f46f
transaction: ready signals will return success bools
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
6d7b1321db
scene_graph: Port container server side decorations
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
188811f808
scene_graph: Port layer_shell
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
5b8b505af5
input: Query scene graph for relevant surface/node intersections
2024-01-18 18:36:54 +03:00
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.
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
869baff252
renderer: Remove in favor of scene_graph
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
bac3ab5526
seat: Remove dead seatop_render function
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
9a57966606
scene_graph: Port ext_session_v1
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
c640c3015f
scene_graph: Port seat drag icons
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
9c17cba0b2
renderer: Render scene_graph
2024-01-18 18:36:54 +03:00
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.
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
1eb16d1367
scene_graph: Maintain wlr_scene_node
s for the sway tree.
2024-01-18 18:36:54 +03:00
Alexander Orzechowski
dbd2fbf430
view: init function should return a success bool
2024-01-18 18:36:54 +03:00
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.
2024-01-18 18:36:54 +03:00
Simon Ser
95265fba59
input: reconfigure send_events on output hotplug
...
Closes: https://github.com/swaywm/sway/issues/7890
2024-01-02 14:07:35 +01:00
Billli11
0aceff7469
Remove wlr_presentation in sway_server struct
...
It is no longer in use.
2023-12-28 11:28:28 +01:00
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
2023-12-13 18:10:03 +01:00
Simon Ser
e8a0205607
input/seat: rename seat_set_exclusive_client()
2023-12-13 10:11:35 +01:00
Simon Ser
dbd70faf2e
input/seat: drop exclusive_client
...
This was a input-inhibit concept.
2023-12-13 10:11:35 +01:00
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).
2023-12-12 10:04:14 -05:00
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.
2023-11-23 20:42:04 +01:00
Manuel Stoeckl
439122e887
common: rename load_background_image to load_image
2023-11-23 20:42:04 +01:00
Manuel Stoeckl
39b9c0d6ba
common: Drop unused render_background_image
...
And the associated background_mode enum.
2023-11-23 20:42:04 +01:00
Kirill Primak
47e6a1164c
xdg-shell: chase events update
2023-11-23 19:41:57 +01:00
Simon Ser
128b6253a9
Pass wl_display to wlr_output_layout
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4310
2023-11-23 16:13:19 +03:00
llyyr
a946b1aecf
Chase wlroots!4440
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4440
2023-11-22 00:42:55 +03:00
Simon Ser
072fa60cb4
Add support for security-context-v1
...
As a first step, deny access to privileged protocols to sandboxed
apps.
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3589
2023-11-21 15:12:42 +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
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
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
luzpaz
d84b3832f4
Fix typo
2023-08-23 20:18:13 +02:00
Simon Ser
f8ddd97e0e
output: drop current_mode
...
This is now unused.
2023-07-31 16:25:01 +02:00
Alexander Orzechowski
df8aad9c5a
swaynag: Implement wp_cursor_shape_v1
2023-07-31 10:34:11 +02:00
Alexander Orzechowski
f436de9200
swaybar: Implement wp_cursor_shape_v1
2023-07-31 10:34:11 +02:00
Simon Ser
6bd11ad0df
Add support for cursor-shape-v1
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4106
2023-07-24 11:28:31 +02:00
Mark Bolhuis
20c91335f6
input: Move wlr_pointer_gestures_v1 to sway_input_manager
...
On multi-seat configurations a zwp_pointer_gestures_v1 global was
created for every seat.
Instead, create the global once in the input manager, to be shared
across all seats.
2023-06-26 22:57:46 +02:00
Simon Ser
b762f455d9
idle-inhibit-v1: simplify with server global
...
We only have a single running server, no need to keep track of
multiple server instances. Also no need to support multiple
idle inhibit managers.
2023-06-23 12:32:38 +02:00
Cezary Drożak
c08762901e
input/libinput: add scroll_button_lock method
...
Closes https://github.com/swaywm/sway/issues/6987
Co-authored-by: JJGadgets <git@jjgadgets.tech>
Co-authored-by: DeltaWhy <mike5713@gmail.com>
2023-06-16 15:30:04 +02:00
Simon Ser
b1b3563d54
Handle gamma-control-v1 set_gamma events
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4046
2023-06-08 22:11:50 +02:00
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.
2023-06-06 09:07:05 +02:00
Kirill Primak
c9e1dab318
chore: chase wlroots map logic unification
2023-06-02 20:11:42 +02:00
hrdl
e8f7551e46
Add support for touch cancel events
2023-05-04 13:30:57 +02:00
Alexander Orzechowski
029b99b482
render: Use wlr_render_pass
2023-05-02 18:31:55 +02:00
Alexander Orzechowski
d5cc474aef
render: pass rendering state together in a struct
...
This lets us easily add rendering state that we need in the future
2023-05-02 18:31:55 +02:00