aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-09-30Merge pull request #2733 from ianyfan/swaybaremersion
swaybar: synchronize rendering to output frames
2018-09-30swaybar: synchronize rendering to output framesIan Fan
2018-09-30Merge pull request #2732 from RyanDwyer/fix-zero-outputsemersion
Fix hotplugging down to zero outputs
2018-09-30Fix hotplugging down to zero outputsRyan Dwyer
When the last output is disconnected, output_disable is called like usual and evacuates the output to the root->saved_workspaces list. It then calls root_for_each_container to remove (untrack) the output from each container's outputs list. However root_for_each_container did not iterate the saved workspaces, so when the output gets freed the containers would have a dangling pointer in their outputs list. Upon reconnect, container_discover_outputs would attempt to use the dangling pointer, causing a crash. This makes root_for_each_container check the saved workspaces list, which fixes the problem.
2018-09-29Merge pull request #2698 from ianyfan/hide-cursoremersion
Only show cursor if pointer configured
2018-09-29Merge pull request #2729 from RyanDwyer/resize-return-falseemersion
Return an error when resizing is a no op
2018-09-29Merge pull request #2635 from RedSoxFan/fix-bg-specialemersion
Handle shell special characters in bg file path
2018-09-29Return an error when resizing is a no opRyan Dwyer
2018-09-28Fix quote handling for commandsBrian Ashworth
Quotes are now stripped for all arguments and stripped before anything is unescaped
2018-09-28Handle shell special characters in bg file pathBrian Ashworth
This changes it back so the path given to swaybg is enclosed in quotes. Additionally, the only character that is escaped in the path stored is double quotes now. This makes it so we don't need to keep an exhaustive list of characters that need to be escaped. The end user will still need to escape these characters in their config or when passed to swaybg.
2018-09-28Merge pull request #2724 from RedSoxFan/update-man-pagesDrew DeVault
Update man pages - dynamic vars and generic blocks
2018-09-28sway{,bar,input}.5: changes for generic blocksBrian Ashworth
2018-09-28sway.5: update set command informationBrian Ashworth
2018-09-28Merge pull request #2723 from ianyfan/swaybarDrew DeVault
swaybar: small fixes and clean-ups
2018-09-28swaybar: trim function prototypesIan Fan
2018-09-28swaybar: move i3bar definitions into separate fileIan Fan
2018-09-28swaybar: remove unused focused_output propertyIan Fan
2018-09-28swaybar: fix setting binding mode indicatorIan Fan
2018-09-28swaybar: fail if bar id is invalidIan Fan
2018-09-28Merge pull request #2722 from RyanDwyer/workspace-configsemersion
Rename workspace_outputs to workspace_configs and fix memory leak
2018-09-28Check for NULL output in workspace_valid_on_outputRyan Dwyer
2018-09-28Rename workspace_outputs to workspace_configs and fix memory leakRyan Dwyer
When we eventually implement `workspace <ws> gaps inner|outer <px>`, we'll need to store the gaps settings for workspaces before they're created. Rather than create a workspace_gaps struct, the approach I'm taking is to rename workspace_outputs to workspace_configs and then add gaps settings to that. I've added a lookup function workspace_find_config. Note that we have a similar thing for outputs (output_config struct and output_find_config). Lastly, when freeing config it would create a memory leak by freeing the list items but not the workspace or output names inside them. This has been rectified using a free_workspace_config function.
2018-09-28Merge pull request #2720 from swaywm/swaylock-shadowemersion
Add support for building swaylock without PAM
2018-09-28Add support for building swaylock without PAMDrew DeVault
This involves setuid'ing swaylock, which then forks and drops perms on the parent process. The child process remains root and listens on a pipe for requests to validate passwords against /etc/shadow.
2018-09-28Merge pull request #2716 from sghctoma/fix-swaybar-freebsdDrew DeVault
Replace getdelim to make swaybar work on FreeBSD
2018-09-28Merge pull request #2663 from ianyfan/fix-txn-state-leaksRyan Dwyer
Free transaction state upon destruction by removing pointer indirection
2018-09-28transaction: do not use pointers for stateIan Fan
2018-09-28Merge pull request #2719 from RyanDwyer/fix-view-is-visibleDrew DeVault
Fix floating views in tabbed/stacked workspaces not getting frame events
2018-09-28Fix floating views in tabbed/stacked workspaces not getting frame eventsRyan Dwyer
view_is_visible would return false, which meant the view wouldn't receive a frame done event. view_is_visible needs to make an exception for floating containers. This also moves the workspace_is_visible check to an earlier location for performance reasons.
2018-09-27Merge pull request #2717 from ianyfan/tablet-configDrew DeVault
input config: merge left_handed option
2018-09-27input config: merge left_handed optionIan Fan
2018-09-27Merge pull request #2704 from ianyfan/tablet-configDrew DeVault
input: enable configuring tablets with libinput
2018-09-26Merge pull request #2715 from sghctoma/add-c11_sourceDrew DeVault
Use _C11_SOURCE feature test macro on FreeBSD (fixes #2616)
2018-09-26Replace getdelim to make swaybar work on FreeBSDsghctoma
This commit fixes a segfault in swaybar on FreeBSD that was caused by using getdelim with EOF as delimiter on an infinite stream. The FreeBSD implementation handles the "no more data, delimiter not found, and EOF not reached" scenario as an error, so it can't be used to read the output of status command. This commit replaces the getline/getdelim calls with reading all available data from the stream in one go.
2018-09-26Make sway/ipc-server.c POSIX 2001 compliantsghctoma
This commit replaces the non-standard SOCK_NONBLOCK and SOCK_CLOEXEC flags with two fcntl calls. This makes the file POSIX 2001 compliant, thus it is no longer necessary to conditionally define, or use internal (__BSD_VISIBLE) feature test macros.
2018-09-26Add _C11_SOURCE feature test macro on FreeBSDsghctoma
This will restrict the default namespace set on FreeBSD to the C11 standard (everything is visible by default), which will prevent possible conflicts with symbols hidden behing __BSD_VISIBLE.
2018-09-26Make libpam optionalDrew DeVault
2018-09-26Merge pull request #2713 from RyanDwyer/fix-remap-raceDrew DeVault
Fix race condition crash when view unmaps + maps quickly
2018-09-26Fix race condition crash when view unmaps + maps quicklyRyan Dwyer
When a view unmaps, we start a transaction to destroy the container, then when the transaction completes we destroy the container and unset the view's container pointer. But if the view has remapped in the meantime, the view's container pointer will be pointing to a different container which should not be cleared. This adds a check to make sure the view is still pointing to the container being destroyed before clearing the pointer. The freeing of the title format is also removed as it is already freed when the view destroys in view_destroy.
2018-09-25Merge pull request #2712 from alexbakker/fix-crashBrian Ashworth
Add a missing null check for moving tiling containers
2018-09-25Add a missing null check for moving tiling containersAlexander Bakker
2018-09-25Merge pull request #2708 from RyanDwyer/fix-output-disconnect-crashemersion
Fix crash when disconnecting output
2018-09-25Fix crash when disconnecting outputRyan Dwyer
If the output being disconnected contains views, and the views are being relocated to another output of a different size, a transaction must occur to reconfigure them. This means by the time container_discover_outputs is called, the output is already disabled and wlr_output is NULL. I considered making it check output->wlr_output, but output->enabled should work just as well and is more descriptive.
2018-09-24input: enable configuring tablets with libinputIan Fan
2018-09-24cursor: allow cursor_set_image to accept a NULL image to hide cursorIan Fan
2018-09-24seat: only show cursor if pointer configuredIan Fan
2018-09-24Merge pull request #2701 from RedSoxFan/input-wildcardemersion
Implement support for input wildcard
2018-09-23Implement support for input wildcardBrian Ashworth
2018-09-23Merge pull request #2699 from RedSoxFan/fix-2667emersion
swaybg: fix increasingly smaller bg on hotplug
2018-09-23swaybg: fix increasingly smaller bg on hotplugBrian Ashworth
render_background_image alters the scale that cairo uses. Depending on the image mode, resolution, and image size, this may cause the surface to be rendered increasingly smaller. By calling cairo_save and cairo_restore, any changes to the cairo settings by the function are not kept as a side effect. The surface that swaybg uses is also now cleared before rendering a frame. This is needed to avoid artifacts on resolution or scale changes with certain combinations of image modes, resolutions, and image sizes. This was also part of the increasingly smaller background visual since it made it so it was not obvious the region being rendered to was smaller and caused an increasing number of smaller images to be appear for each hotplug.