aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
...
| * | | | sway.5: update set command informationLibravatar Brian Ashworth2018-09-28
|/ / / /
* | | | Merge pull request #2723 from ianyfan/swaybarLibravatar Drew DeVault2018-09-28
|\ \ \ \ | | | | | | | | | | swaybar: small fixes and clean-ups
| * | | | swaybar: trim function prototypesLibravatar Ian Fan2018-09-28
| | | | |
| * | | | swaybar: move i3bar definitions into separate fileLibravatar Ian Fan2018-09-28
| | | | |
| * | | | swaybar: remove unused focused_output propertyLibravatar Ian Fan2018-09-28
| | | | |
| * | | | swaybar: fix setting binding mode indicatorLibravatar Ian Fan2018-09-28
| | | | |
| * | | | swaybar: fail if bar id is invalidLibravatar Ian Fan2018-09-28
|/ / / /
* | | | Merge pull request #2722 from RyanDwyer/workspace-configsLibravatar emersion2018-09-28
|\ \ \ \ | | | | | | | | | | Rename workspace_outputs to workspace_configs and fix memory leak
| * | | | Check for NULL output in workspace_valid_on_outputLibravatar Ryan Dwyer2018-09-28
| | | | |
| * | | | Rename workspace_outputs to workspace_configs and fix memory leakLibravatar Ryan Dwyer2018-09-28
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #2720 from swaywm/swaylock-shadowLibravatar emersion2018-09-28
|\ \ \ \ | | | | | | | | | | Add support for building swaylock without PAM
| * | | | Add support for building swaylock without PAMLibravatar Drew DeVault2018-09-28
| | |_|/ | |/| | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #2716 from sghctoma/fix-swaybar-freebsdLibravatar Drew DeVault2018-09-28
|\ \ \ \ | | | | | | | | | | Replace getdelim to make swaybar work on FreeBSD
| * | | | Replace getdelim to make swaybar work on FreeBSDLibravatar sghctoma2018-09-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge pull request #2663 from ianyfan/fix-txn-state-leaksLibravatar Ryan Dwyer2018-09-28
|\ \ \ \ \ | | | | | | | | | | | | Free transaction state upon destruction by removing pointer indirection
| * | | | | transaction: do not use pointers for stateLibravatar Ian Fan2018-09-28
|/ / / / /
* | | | | Merge pull request #2719 from RyanDwyer/fix-view-is-visibleLibravatar Drew DeVault2018-09-28
|\ \ \ \ \ | |_|/ / / |/| | | | Fix floating views in tabbed/stacked workspaces not getting frame events
| * | | | Fix floating views in tabbed/stacked workspaces not getting frame eventsLibravatar Ryan Dwyer2018-09-28
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #2717 from ianyfan/tablet-configLibravatar Drew DeVault2018-09-27
|\ \ \ \ | | | | | | | | | | input config: merge left_handed option
| * | | | input config: merge left_handed optionLibravatar Ian Fan2018-09-27
|/ / / /
* | | | Merge pull request #2704 from ianyfan/tablet-configLibravatar Drew DeVault2018-09-27
|\ \ \ \ | | | | | | | | | | input: enable configuring tablets with libinput
| * | | | input: enable configuring tablets with libinputLibravatar Ian Fan2018-09-24
| | |/ / | |/| |
* | | | Merge pull request #2715 from sghctoma/add-c11_sourceLibravatar Drew DeVault2018-09-26
|\ \ \ \ | |_|/ / |/| | | Use _C11_SOURCE feature test macro on FreeBSD (fixes #2616)
| * | | Make sway/ipc-server.c POSIX 2001 compliantLibravatar sghctoma2018-09-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | Add _C11_SOURCE feature test macro on FreeBSDLibravatar sghctoma2018-09-26
|/ / / | | | | | | | | | | | | | | | 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.
* | | Make libpam optionalLibravatar Drew DeVault2018-09-26
| | |
* | | Merge pull request #2713 from RyanDwyer/fix-remap-raceLibravatar Drew DeVault2018-09-26
|\ \ \ | | | | | | | | Fix race condition crash when view unmaps + maps quickly
| * | | Fix race condition crash when view unmaps + maps quicklyLibravatar Ryan Dwyer2018-09-26
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #2712 from alexbakker/fix-crashLibravatar Brian Ashworth2018-09-25
|\ \ \ | | | | | | | | Add a missing null check for moving tiling containers
| * | | Add a missing null check for moving tiling containersLibravatar Alexander Bakker2018-09-25
|/ / /
* | | Merge pull request #2708 from RyanDwyer/fix-output-disconnect-crashLibravatar emersion2018-09-25
|\ \ \ | |/ / |/| | Fix crash when disconnecting output
| * | Fix crash when disconnecting outputLibravatar Ryan Dwyer2018-09-25
|/ / | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #2701 from RedSoxFan/input-wildcardLibravatar emersion2018-09-24
|\ \ | | | | | | Implement support for input wildcard
| * | Implement support for input wildcardLibravatar Brian Ashworth2018-09-23
|/ /
* | Merge pull request #2699 from RedSoxFan/fix-2667Libravatar emersion2018-09-23
|\ \ | | | | | | swaybg: fix increasingly smaller bg on hotplug
| * | swaybg: fix increasingly smaller bg on hotplugLibravatar Brian Ashworth2018-09-23
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #2696 from RyanDwyer/fix-gtkmenubarLibravatar Drew DeVault2018-09-23
|\ \ | | | | | | Fix GtkMenuBar always opening first item
| * | Fix GtkMenuBar always opening first itemLibravatar Ryan Dwyer2018-09-23
|/ / | | | | | | | | It seems like advertising that we support touch when we don't, while using SSD, makes GtkMenuBar misbehave. Please don't ask me why...
* | Merge pull request #2695 from RyanDwyer/remove-moveoutoftabsstacksLibravatar Drew DeVault2018-09-23
|\ \ | | | | | | Remove move_out_of_tabs_stacks
| * | Flatten container in workspace_rejiggerLibravatar Ryan Dwyer2018-09-23
| | |
| * | Fix some bugs as a result of removing move_out_of_tabs_stacksLibravatar Ryan Dwyer2018-09-23
| | |
| * | Remove move_out_of_tabs_stacksLibravatar Ryan Dwyer2018-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following. Create these layouts and run move right: (Initial layout -> expected result -> actual result) * `H[S[unfocused focused] unfocused]` -> `H[S[unfocused] focused unfocused]` -> `H[H[S[unfocused] focused] unfocused]` * `H[S[unfocused focused] V[unfocused]]` -> `H[S[unfocused] V[unfocused focused]]` -> `H[H[S[unfocused] focused] V[unfocused]]` move_out_of_tabs_stacks was originally made to allow views to move out of the tabbed/stacked container in the parallel direction, but at some point this has started working using the regular logic.
* | | Merge pull request #2694 from RyanDwyer/fix-sticky-jumping-on-switchLibravatar emersion2018-09-23
|\ \ \ | | | | | | | | Prevent sticky containers from jumping on workspace switch
| * | | Prevent sticky containers from jumping on workspace switchLibravatar Ryan Dwyer2018-09-23
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you have swaybar docked to the top, and you create a floating sticky container and switch workspaces on the same output, the sticky container would move down by the height of swaybar on each switch. This happens because when creating the workspace we set the dimensions to the same as the output, then the subsequent arrange corrects it. During this arrange, floating containers are translated so they stay relative to the workspace. This translation needs to not occur for the initial arrange. This patch makes workspaces have a zero width and height when first created, so we can detect whether this is the initial arrange and avoid translating the floating containers if so.
* | | Merge pull request #2686 from RyanDwyer/tab-scrollingLibravatar emersion2018-09-23
|\ \ \ | |/ / |/| | Implement tab cycling using mouse wheel
| * | Implement tab cycling using mouse wheelLibravatar Ryan Dwyer2018-09-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Firstly, a change had to be made to the container_at functions. If you create layout `T[view H[view view]]` and hover the second tab, the container_at functions would return the focus_inactive child. They now return the split container itself. To compensate for this, dispatch_cursor_button has been adjusted to find the focus_inactive child before focusing it. The actual implementation of wheel scrolling is pretty straightforward. This uses handle_cursor_axis, so I took a similar approach to handle_cursor_button (ie. creating a dispatch_cursor_axis function).
* | | Merge pull request #2688 from RyanDwyer/exec-commands-without-focusLibravatar Drew DeVault2018-09-22
|\ \ \ | | | | | | | | Allow running commands on containers without focusing them
| * | | Allow running commands on containers without focusing themLibravatar Ryan Dwyer2018-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a `con` argument to `execute_command` which allows you to specify the container to execute the command on. In most cases it leaves it as `NULL` which makes it use the focused node. We only set it when executing `for_window` criteria such as when a view maps. This means we don't send unnecessary IPC focus events, and fixes a crash when the criteria command is `move scratchpad` (because we can't give focus to a hidden scratchpad container). Each of the shell map handlers now check to see if the view has a workspace. It won't have a workspace if criteria has moved it to the scratchpad.
* | | | Merge pull request #2690 from ianyfan/commandsLibravatar Ryan Dwyer2018-09-23
|\ \ \ \ | | | | | | | | | | commands: remove obselete code for sticky windows when switching workspace
| * \ \ \ Merge branch 'master' into commandsLibravatar Ryan Dwyer2018-09-23
| |\ \ \ \ | |/ / / / |/| | | |