aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
2025-07-10Wire up xdg-toplevel-tag-v1Furkan Sahin-1/+39
2025-06-14Add link to README.az.mdFurkan Sahin-1/+2
2025-06-14Add README.az.mdFurkan Sahin-0/+66
2025-07-08Add features.hdr to output IPC responseFurkan Sahin-19/+33
2025-01-26Add support for color-management-v1Furkan Sahin-1/+30
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4962
2025-01-27Add support for HDR10 outputFurkan Sahin-23/+139
2025-07-05ipc-json, swaymsg: indicate when adaptive sync is unsupportedFurkan Sahin-1/+12
2025-05-06Drop sway_output.events.disableFurkan Sahin-20/+17
In general wl_signal isn't well-suited for Sway: Sway doesn't need any modularity, and signals make it trickier to track down exactly what happens down the stack. Replace Sway's output disable signal with a simple list tracking for the only user.
2025-06-28Revert "sway/tree: Simplify sway_node teardown"Furkan Sahin-125/+149
This reverts commit d2ef57e60c89c7cb3c652a932de37fd560b9addd. This change tried to remove nodes from all points of reference to allow immediate destruction. However, it missed things like the children lists cloned by transaction states of parent nodes. Adding all that extra cleanup would not be in the spirit of a PR claiming to simplify teardown. Let's wait for someone to come up with a cleaner approach instead. Fixes: https://github.com/swaywm/sway/pull/8738
2025-06-28Revert "tree/container: Remove child from all lists"Furkan Sahin-40/+19
This reverts commit 1a156d44c6ed5d45219595ed72f5f0bb0271d2d5.
2025-05-31tree/container: Remove child from all listsFurkan Sahin-19/+40
When a container is detached, we need to remove it from any lists it may be part of. We use container_get_siblings to obtain the relevant list, find our entry and remove it. If the container is in a later list than the one returned by container_get_siblings, or is in multiple lists for some reason, container_detach will fail to remove the container, leaving a dangling pointer when the container is freed. Instead of calling container_get_siblings, check and remove the container from all lists.
2025-05-26sway/tree: Simplify sway_node teardownFurkan Sahin-149/+125
A sway_node may end up being referenced in either a queued transaction, pending transaction or as a dirty node. To manage this, the transaction system has been responsible for destroying containers, workspaces and outputs at the end of their last referenced transaction. This significantly complicates the teardown flow of surfaces and outputs. Instead, remove the node from transactions and dirty lists so that the callsite can remove and free the node immediately.
2025-05-14Remove the temporary SUID warningFurkan Sahin-19/+0
A temporary SUID detection that would cause sway to exit was introduced when SUID operation was deprecated, intended to avoid cases where a user would not heed the deprecation notice, continued to use SUID and ended up with sway accidentally running as root. Remove the check, as the three years that have passed is sufficient time for users to discover the deprecation and adapt. We did not care if users intentionally want to run sway as root through SUID, we only wanted to avoid surprise root.
2025-06-23tree/view: send event unconditionally in view_send_frame_done()Furkan Sahin-1/+1
Previously, we were using wl_signal_emit_mutable() directly instead of wlr_scene_buffer_send_frame_done(). This bypassed any visibility checks, which matters before a surface is mapped. Fixes flickering with an invalid size when launching new programs. Fixes: edfc7c3e3136 ("Stop using wlr_scene_buffer_send_frame_done()")
2025-05-25Add support for toplevel captureFurkan Sahin-5/+60
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5078
2025-06-05Stop using wlr_scene_buffer_send_frame_done()Furkan Sahin-7/+18
That function now takes the output as input. We don't always have the output at hand, so use the function operating on a wlr_scene_surface instead.
2025-06-16seatop_default: Call seatop_rebase with proper timestampFurkan Sahin-1/+4
2025-06-16Rename get_current_time_msec to get_current_time_in_msec and move to util.cFurkan Sahin-8/+10
get_current_time_msec conflicts with a function with the same name in wlroots.
2025-06-12build: set wrap_mode=nodownload in default optionsFurkan Sahin-0/+1
This can be surprising (e.g. in CI, this can download source code instead of using system libraries) and users can easily turn it back on if desired.
2025-06-13text_input: Don't relay IM state from unfocused windowsFurkan Sahin-0/+4
Otherwise, applications can enable their text input and affect IM state while a different application is focused.
2025-06-13text_input: Ignore enable requests from unfocused windowsFurkan Sahin-0/+4
Unfocused windows shouldn't be allowed to activate the IM. This fixes an issue with swaymsg invocations that contain several commands which result in multiple swift focus changes. An application briefly gets text input focus, sends an enable request, then sway processes it and activates the IM only after the commands are all finished and focus is on something else which did not send an enable request.
2025-06-09build: bump version to 1.12-devFurkan Sahin-1/+1
2025-06-09config.in: bind XF86Audio* keycodes to playerctlFurkan Sahin-0/+9
2025-06-05Remove trailing spacesFurkan Sahin-11/+11
2025-06-05server: fix socket path memory leakFurkan Sahin-1/+2
The socket path allocated with strdup() in server_init() was not being freed in server_fini(). Remove const qualifier and add proper cleanup.
2025-03-27swaybar: deduplicate mode and workspace rendering codeFurkan Sahin-86/+58
The render_workspace_button and render_binding_mode_indicator functions are almost the same. This commit extracts the common rendering code into a new render_box function.
2025-04-27Log message on for_window command errorFurkan Sahin-2/+4
2025-05-24Improve example of input section in default configFurkan Sahin-2/+6
Previous example included a specific device name. This can be confusing for beginners, as the default did not work on most devices.
2025-05-06tree/workspace: Remove exclude arg from get_highest_availableFurkan Sahin-8/+4
workspace_output_get_highest_available took an output to exclude as argument, meant to avoid accidentally reselecting an output we are evacuating workspaces from. Outputs are now removed from the list before we evacuate, making exclusion unnecessary. Remove the argument.
2025-05-06output: Minimize interaction with output after destroyFurkan Sahin-14/+15
When an output is destroyed, we go through the process of disabling it. This includes evacuating all content away from the output, which can lead to various modifications to the scene. With the scene_output still present, this can lead to things like output_enter events being emitted for the output currently being destroyed. Ensure that the scene output is destroyed first and that the output is immediately considered disabled. References: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3974
2025-05-21transaction: fix floating fullscreen containersFurkan Sahin-2/+2
7462d62 introduced a regression where fullscreening a child of a floating container would result in a black screen. This is because the order of 'arrange_fullscreen' and 'arrange_worksplace_floating' was swapped causing the fullscreen container's scene to get reparented after it was parented in the fullscreen layer. Fixes #8729
2025-05-21layer-shell: reclaim space from unmapped layer surfacesFurkan Sahin-5/+1
wlroots resets 'initialized' when a layer surface is unmapped and sway doesn't rearrange the layer surfaces in response to a commit of a surface where 'initialized' is false. This results in space not getting reclaimed from a recently unmapped layer surface until some other action causes 'arrange_layers' to get called. This commit makes sure all layer surfaces get rearranged when a layer surface is unmapped.
2025-05-19input: fix udev_device leakFurkan Sahin-10/+16
libinput_device_get_udev_device() returns a ref'ed handle: https://wayland.freedesktop.org/libinput/doc/latest/api/group__device.html#gac13c64ba19fc19094cff0e5354a2a7ce Similar to this wlroots MR: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5074
2025-05-09transaction: reparent scenes of containers behind fullscreen containersFurkan Sahin-2/+11
Currently we do a good job of reparenting the scenes of a container when it moves into a disabled workspace. We need to do this since normally the scenes are reparented in the 'arrange_{children,container}' functions but these don't get called for disabled workspaces. However, the 'arrange_{children,container}' functions also don't get called when there is a fullscreen container hiding them. This commit makes sure to call 'disable_workspace' on workspaces with a fullscreen container so that when a container is moved into the workspace its scenes will be properly reparented. Also, when there is a fullscreen global container 'disable_workspace' is called for all workspaces since the scenes of a previously fullscreen global container may still be parented in the 'fullscreen_global' layer. Fixes #8705 #8659 #8432
2025-05-06transaction: fix size of child container decorations in stacking layoutsFurkan Sahin-1/+1
Before this commit stacking containers with more than one child sized the active container's decorations as if there was only one titlebar. Commit fa6115f introduced the local variable 'net_height' but incorrectly calculated it for stacking containers. Fixes #8686.
2025-01-06raise scratchpad containerFurkan Sahin-0/+2
2025-05-15transaction: ensure border scene is enabled for floating containersFurkan Sahin-0/+1
When a container that was previously an inactive child of a tabbed or stacking layout becomes floating it's border scene-tree remains disabled. This results in only the titlebar being rendered for the container. This commit ensures the border scene-tree is enabled when arranging floating containers. Fixes #8721
2025-05-15input/text_input: chase wlroots updateFurkan Sahin-1/+1
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5032 Fix #8718
2025-05-15build: bump wlroots versionFurkan Sahin-2/+2
2025-05-07move: fix broken titlebar when moving child to new workspaceFurkan Sahin-0/+1
Before this commit, when moving a non-leaf child of a tabbed or stacking container to a new workspace, the child would be detached from the parent container and the grandchildren would be sent to the new workspace but the child itself wouldn't be destroyed causing the titlebar to still be rendered as part of the parent container. Fixes #8648.
2025-04-25input/seatop_down: Update decorations for touchscreen inputsFurkan Sahin-0/+1
fixes #8675
2025-05-04transaction: Ensure all tabs are visible in tabbed modeFurkan Sahin-0/+2
Before this commit when a child of a tabbed or stacking container was taken out of fullscreen and a different sibling was focused in the same transaction, the titlebar of the previously fullscreen container would remain hidden. This commit makes sure that scene tree for decorations is enabled for all containers within a tabbed or stacking container when it is arranged.
2025-04-29config/output: Fix missing output config supersedesFurkan Sahin-0/+10
color_transform and allow_tearing was not handled by supersede_output_config which could lead to configuration being incorrectly applied.
2025-04-30config/output: Use INT_MAX as x/y unset valueFurkan Sahin-8/+8
We oftne use -1 to indicate unset values. In case of output (x, y), we would consider the fields set if they are not both -1. This means that (0, -1) and (-1, 0) are valid coordinates, but (-1, -1) is not. We support negative output positioning, so we cannot use -1 to mean unset. Zero is also not an option as that would disallow reverting a set position back to (0, 0). INT_MAX is an unreasonable output position, so use it to indicate unset values, and only use the value when both are set.
2024-05-03Fix includes with relative pathsFurkan Sahin-20/+4
The function `load_include_configs` already changes the directory to the one containing the parent config. Therefore, `load_include_config` trying to assemble the "full" path leads to repetition of path segments, making the `realpath` call fail with ENOENT. Just calling `realpath` on the path itself from the directory with the parent configuration is sufficient, so there is no point in passing `parent_dir` to `load_include_config`.
2025-04-27build: bump version to 1.11-rc21.11-rc2Furkan Sahin-1/+1
2025-04-24sway/commands: Handle incorrect resize unitFurkan Sahin-1/+1
problem: an invalid usage of the command resize set will cause sway to crash because it doesn't check for an invalid height. solution: validate height along with width.
2025-04-27Replace signal() with sigaction()Furkan Sahin-8/+12
The man page for signal(3) reads: > new applications should use sigaction() rather than signal()
2025-04-20Use pthread_atfork() to restore signals and NOFILE limitFurkan Sahin-28/+23
This ensures these functions are always called (even when a library such as wlroots or libc perform the fork) and removes the need to manually call them.
2025-04-20build: bump version to 1.11-rc11.11-rc1Furkan Sahin-1/+1