aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorLines
2024-01-18scene_graph: Port seat drag iconsAlexander Orzechowski-20/+13
2024-01-18renderer: Render scene_graphAlexander Orzechowski-19/+1
2024-01-18scene_graph: Introduce sway_scene_descriptorAlexander Orzechowski-0/+25
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-18scene_graph: Maintain `wlr_scene_node`s for the sway tree.Alexander Orzechowski-0/+85
2024-01-18view: init function should return a success boolAlexander Orzechowski-1/+1
2024-01-18desktop: Rename layers to shell_layersAlexander Orzechowski-1/+1
This code will be deleted later, but for the time being rename it so it doesn't conflict with future properties.
2024-01-02input: reconfigure send_events on output hotplugSimon Ser-0/+3
Closes: https://github.com/swaywm/sway/issues/7890
2023-12-28Remove wlr_presentation in sway_server structBillli11-2/+0
It is no longer in use.
2023-12-13output: Destroy when output layout is destroyedAlexander Orzechowski-0/+1
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-13input/seat: rename seat_set_exclusive_client()Simon Ser-2/+1
2023-12-13input/seat: drop exclusive_clientSimon Ser-3/+0
This was a input-inhibit concept.
2023-12-12Detect Nvidia proprietary driver via drmGetVersion()Simon Ser-0/+2
This is less punishing for users with the Nvidia driver loaded but not used by Sway (e.g. for CUDA).
2023-11-23common: move load_image to swaybarManuel Stoeckl-2/+2
swaynag, swaymsg, and sway do not use this function and are unlikely to in the future.
2023-11-23common: rename load_background_image to load_imageManuel Stoeckl-1/+1
2023-11-23common: Drop unused render_background_imageManuel Stoeckl-14/+1
And the associated background_mode enum.
2023-11-23xdg-shell: chase events updateKirill Primak-2/+5
2023-11-23Pass wl_display to wlr_output_layoutSimon Ser-1/+1
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4310
2023-11-22Chase wlroots!4440llyyr-2/+0
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4440
2023-11-21Add support for security-context-v1Simon Ser-0/+4
As a first step, deny access to privileged protocols to sandboxed apps. References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3589
2023-11-16input/input-manager: drop input_manager_configure_all_inputsSimon Ser-2/+0
This is now unused.
2023-11-16Only reconfigure input mappings on output changeSimon Ser-0/+5
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-10-05Drop support for KDE's idle protocolSimon Ser-2/+0
We support the standard idle-notify protocol since Sway 1.8.
2023-09-07i3 compat: Adding support for the `all` criteriaJohan Sköld-0/+1
Matches all views. i3 PR: https://github.com/i3/i3/pull/4460 Fixes #7110
2023-08-23Fix typoluzpaz-1/+1
2023-07-31output: drop current_modeSimon Ser-2/+0
This is now unused.
2023-07-31swaynag: Implement wp_cursor_shape_v1Alexander Orzechowski-0/+3
2023-07-31swaybar: Implement wp_cursor_shape_v1Alexander Orzechowski-0/+2
2023-07-24Add support for cursor-shape-v1Simon Ser-0/+4
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4106
2023-06-26input: Move wlr_pointer_gestures_v1 to sway_input_managerMark Bolhuis-1/+1
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-23idle-inhibit-v1: simplify with server globalSimon Ser-9/+5
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-16input/libinput: add scroll_button_lock methodCezary Drożak-0/+2
Closes https://github.com/swaywm/sway/issues/6987 Co-authored-by: JJGadgets <git@jjgadgets.tech> Co-authored-by: DeltaWhy <mike5713@gmail.com>
2023-06-08Handle gamma-control-v1 set_gamma eventsSimon Ser-0/+6
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4046
2023-06-06Add support for wlr-layer-shell ON_DEMAND keyboard interactivityErik Reider-1/+6
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-02chore: chase wlroots map logic unificationKirill Primak-0/+4
2023-05-04Add support for touch cancel eventshrdl-0/+6
2023-05-02render: Use wlr_render_passAlexander Orzechowski-0/+2
2023-05-02render: pass rendering state together in a structAlexander Orzechowski-7/+11
This lets us easily add rendering state that we need in the future
2023-04-14swaynag: add printf attribute to swaynag_log()Simon Ser-1/+2
2023-04-14config: add printf attribute to config_add_swaynag_warning()Simon Ser-1/+2
2023-04-14commands: add printf attribute to cmd_results_new()Simon Ser-1/+2
And fix the resulting build failures.
2023-04-14pango: add printf attributeSimon Ser-2/+3
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.
2023-04-14Add format_str() and vformat_str()Simon Ser-0/+9
Simple helpers to allocate and format a string.
2023-04-14Use output_match_name_or_id() in apply_output_config_to_outputs()Simon Ser-0/+3
2023-03-14root: Try to preserve relative positions of floating containersAnkit Pandey-0/+8
This makes the behavior of floating containers more consistent with i3. The coordinates of the container are scaled when the size of the workspace it is on changes or when the container is moved between workspaces on different outputs. For scratchpad containers, add a new state that preserves the dimensions of the last output the window appeared on. This is necessary because after a container is hidden in the scratchpad, we expect it to be in the same relative position on the output when it reappears. We can't just use the container's attached workspace because that workspace's dimensions might have been changed or the workspace as a whole could have been destroyed.
2023-02-22Move output commit out of output_render()Simon Ser-2/+1
That way output_render() only does what it says on the tin.
2023-02-22Constify pixman_region32_t for rendering functionsSimon Ser-3/+3
2023-02-20Implement seatop_touchStacy Harper-2/+25
Atm we got issue with the touch position sent to the clients. While holding contact, leaving the initial container will continue to send motion event to the client but with the new local position from the new container. This seatop goal is to send the position of the touch event, relatively to the initial container layout position.
2023-02-20Update surface fractional scale on output changeSimon Ser-0/+1
Closes: https://github.com/swaywm/sway/issues/7464
2023-02-10Introduce surface_{enter,leave}_output()Simon Ser-0/+5
We can centralize all output-related surface events from there.
2023-02-05launcher: support external launcher tokensRonan Pigott-0/+3