summaryrefslogtreecommitdiffstats
path: root/sway
Commit message (Collapse)AuthorAge
* Fix json object ipc returnLibravatar John Axel Eriksson2018-11-29
|
* Merge pull request #3216 from RedSoxFan/fix-empty-titlebarsLibravatar emersion2018-11-28
|\ | | | | Fix titlebar when no title or marks
| * Fix titlebar when no title or marksLibravatar Brian Ashworth2018-11-28
| | | | | | | | This fixes the rendering of the titlebar when there is no title or marks.
* | Fix default_orientation autoLibravatar Brian Ashworth2018-11-28
|/ | | | | | | | Since the output config is no longer applied before creating the default workspace, the layout for default workspaces on an output may not be correct. Due to the ordering of calls in output_enable being changed in several bug fix PRs, this just fixes the layout after the call to apply_output_config.
* Merge pull request #3213 from RedSoxFan/fix-3203Libravatar emersion2018-11-28
|\ | | | | Fix scratchpad segfault - NULL focused workspace
| * Fix scratchpad segfault - NULL focused workspaceLibravatar Brian Ashworth2018-11-28
| | | | | | | | | | | | | | | | When adding a container to the scratchpad, it was possible for focus to be removed from the seat. This occurred when a single child was moved from it's parent to the scratchpad due to the focus_inactive for the parent being NULL. If the focus_inactive for the parent is NULL, the focus_inactive for the workspace should be focused.
* | Merge pull request #3206 from RedSoxFan/ipc-subscribeLibravatar emersion2018-11-28
|\ \ | | | | | | Implement support for swaymsg -t SUBSCRIBE [-m]
| * | Implement support for swaymsg -t SUBSCRIBE [-m]Libravatar Brian Ashworth2018-11-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In `i3 4.16`, `i3-msg` can be used with the message type `subscribe` and has the ability to monitor for responses until killed. This adds support for both to swaymsg. If the JSON array of event types is malformed or contains an invalid event, sway will send a response with `success` set to `false`. If swaymsg sees this, it will not display the failure and exit. If the `subscribe` event is successful, swaymsg will wait for the first response and display that instead of the success message. If `-m/--monitor` is given, swaymsg will continue monitor for responses until killed or a malformed response is received. For the `subscribe` event, the responses will always be printed as JSON. If `-r/--raw` is given, the JSON will not be pretty printed, which may be preferred when monitoring due to there being multiple responses. Example: `swaymsg -t SUBSCRIBE -m "['window']"`
* | | Implement bar gapsLibravatar Brian Ashworth2018-11-28
| |/ |/| | | | | | | | | | | | | | | Adds the bar subcommand `gaps <amount>|<horizontal> <vertical>|<top> <right> <bottom> <left>` to set gaps for swaybar. Due to restrictions on margins for a layer_surface, only the sides that are anchored to an edge of the screen can have gaps. Since there is support for per-side outer gaps for workspaces, those should be able to be used instead for the last side.
* | Merge pull request #3212 from martinetd/move_floatingLibravatar Brian Ashworth2018-11-28
|\ \ | | | | | | move to workspace: fix moving floating container to non-empty workspace
| * | move to workspace: fix moving floating container to non-empty workspaceLibravatar Dominique Martinet2018-11-29
| | | | | | | | | | | | | | | | | | moving a container to a non-empty workspace will find a container to move to in the destination workspace and call container_move_to_container, which must not just skip floating containers
* | | Introduce a way to show config warnings in swaynagLibravatar Brian Ashworth2018-11-28
| |/ |/| | | | | | | | | | | | | | | | | Adds the function `config_add_swaynag_warning(char *fmt, ...)` so that handlers can add warnings to the swaynag config log in a uniform way. The formatting is identical to errors and include the line number, line, and config path. This also alters the background file access warning to use the function and introduces a warning for duplicate bindings.
* | Fix segfault when destroying unmapped child viewLibravatar emersion2018-11-28
|/
* Merge pull request #3199 from emersion/handle-subsurface-destroyLibravatar Ryan Dwyer2018-11-28
|\ | | | | Handle destroyed subsurfaces
| * Damage view child when destroyedLibravatar emersion2018-11-27
| |
| * Handle destroyed subsurfacesLibravatar emersion2018-11-27
| | | | | | | | | | | | | | | | | | | | Damage subsurfaces when they are destroyed. Since subsurfaces don't have an unmap event we need to do that on destroy. We also don't want to keep a sway_view_child when the wlr_subsurface has been destroyed. Fixes https://github.com/swaywm/sway/issues/3197
* | Merge pull request #3204 from RedSoxFan/cmd-res-listLibravatar emersion2018-11-28
|\ \ | | | | | | Change execute_command to return a list of results
| * | Change execute_command to return a list of resultsLibravatar Brian Ashworth2018-11-27
| |/ | | | | | | | | | | This matches i3's behavior of returning a list of results that contain the result of each command that was executed. Additionally, the `parse_error` attribute has been added to the IPC JSON reply.
* / Do not strip quotes for cmd_modeLibravatar Brian Ashworth2018-11-28
|/ | | | | | Like with cmd_bindsym and cmd_bindcode, the quotes should not be stripped for cmd_mode. cmd_mode performs its own stripping for the mode name and the only valid subcommands are cmd_bindsym and cmd_bindcode.
* Merge pull request #3175 from emersion/rename-gtk-primary-selectionLibravatar Drew DeVault2018-11-26
|\ | | | | Update for swaywm/wlroots#1387
| * Update for swaywm/wlroots#1387Libravatar emersion2018-11-23
| |
* | Merge pull request #3168 from mihaicmn/scratchpad-eventsLibravatar Brian Ashworth2018-11-26
|\ \ | | | | | | Fix missing IPC scratchpad replies/move events
| * | IPC: Use consistent function names across ipc-jsonLibravatar Mihai Coman2018-11-26
| | |
| * | IPC: Add scratchpad containers to get_tree replyLibravatar Mihai Coman2018-11-26
| | | | | | | | | | | | | | | This patch lists all hidden scratchpad containers as floating nodes on "__i3_scratch" workspace. This workspace resides on "__i3" output.
| * | IPC: Trigger move events for scratchpad containersLibravatar Mihai Coman2018-11-26
| | | | | | | | | | | | | | | | | | This patch allows IPC clients to receive window::move events when containers are moved to scratchpad or when hidden containers are shown via "scratchpad show" command.
* | | Merge pull request #3185 from emersion/remove-xopen-sourceLibravatar Ryan Dwyer2018-11-26
|\ \ \ | |/ / |/| | Replace _XOPEN_SOURCE with _POSIX_C_SOURCE
| * | Replace _XOPEN_SOURCE with _POSIX_C_SOURCELibravatar emersion2018-11-25
| | | | | | | | | | | | And make sure we don't define both in the same source file.
* | | Merge pull request #3169 from RedSoxFan/title-alignLibravatar emersion2018-11-26
|\ \ \ | | | | | | | | Implement title alignment
| * | | Implement title alignmentLibravatar Brian Ashworth2018-11-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for `i3 4.16`'s ability to set the title alignment. The command is `title_align left|center|right`. When the title is on the right, marks are moved to the left. Otherwise, they are on the right.
* | | | Merge pull request #3183 from emersion/fix-escape-pangoLibravatar Brian Ashworth2018-11-25
|\ \ \ \ | |/ / / |/| | | Fix pango title escaping
| * | | Fix pango title escapingLibravatar emersion2018-11-25
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes two bugs. First, commit [1] has inverted the condition when we escape pango markup. We need to escape client-provided strings when markup is enabled. Second, parse_title_format has a shortcut when title_format is set to `%title`, and escape_pango_markup wasn't used anymore there. Fixes https://github.com/swaywm/sway/issues/3181 [1]: https://github.com/swaywm/sway/pull/3179/commits/caee2dff03fc007dc46cf121e013f5347ac46ba9
* | | Merge pull request #3184 from kupospelov/fix-resizeLibravatar emersion2018-11-25
|\ \ \ | |/ / |/| | resize set: fix units for floating containers
| * | resize set: add assertion for an invalid unitLibravatar Konstantin Pospelov2018-11-25
| | |
| * | resize set: fix units for floating containersLibravatar Konstantin Pospelov2018-11-25
| | | | | | | | | | | | | | | This commit fixes the default size units for floating containers, so that pixels are used if the units are not specified.
* | | Merge pull request #3179 from baloo/baloo/title_format-pango_markupLibravatar emersion2018-11-24
|\ \ \ | |/ / |/| | fixes pango_markup support with title_format
| * | fixes pango_markup support with title_formatLibravatar Arthur Gautier2018-11-24
| | | | | | | | | | | | | | | | | | | | | The support for pango_markup was broken in title_format because the formated title was escaped. I think only the payload should be escaped. This commit fixes 789a877b379cd35c350610be62b971ae00feb542
* | | Adding commands for configuring titlebar borders and paddingLibravatar Florent de Lamotte2018-11-22
|/ /
* | Merge pull request #3158 from emersion/get-outputs-focusedLibravatar emersion2018-11-22
|\ \ | |/ |/| ipc: fix focused in get_outputs reply
| * ipc: fix focused in get_outputs replyLibravatar emersion2018-11-19
| | | | | | | | It's set even if a child of the output is focused.
* | Merge pull request #3083 from c-edw/feature/StripWorkspaceNameLibravatar emersion2018-11-19
|\ \ | |/ |/| Implement strip_workspace_name.
| * Implement strip_workspace_name.Libravatar Connor E2018-11-17
| |
* | Add scroll factor config option.Libravatar Spencer Michaels2018-11-18
| |
* | Use #if instead of #ifdefLibravatar emersion2018-11-18
| |
* | Merge pull request #3142 from RyanDwyer/move-view-propertiesLibravatar Drew DeVault2018-11-17
|\ \ | | | | | | Move view {x,y,width,height} into container struct
| * | Move view {x,y,width,height} into container structLibravatar Ryan Dwyer2018-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This renames/moves the following properties: * sway_view.{x,y,width,height} -> sway_container.content_{x,y,width,height} * This is required to support placeholder containers as they don't have a view. * sway_container_state.view_{x,y,width,height} -> sway_container_state.content_{x,y,width,height} * To remain consistent with the above. * sway_container_state.con_{x,y,width,height} -> sway_container_state.{x,y,width,height} * The con prefix was there to give it contrast from the view properties, and is no longer useful. The function container_set_geometry_from_floating_view has also been renamed to container_set_geometry_from_content.
* | | commands/resize: fix grow vars uninitializedLibravatar Cole Mickens2018-11-17
|/ /
* | Merge pull request #3132 from emersion/dispatch-cursor-btn-segfaultLibravatar Ryan Dwyer2018-11-17
|\ \ | | | | | | Fix segfault in dispatch_cursor_button
| * | Fix segfault in dispatch_cursor_buttonLibravatar emersion2018-11-15
| | |
* | | resize set: convert ppt to px for floating containersLibravatar Trevor Slocum2018-11-16
|/ /
* | Fix double free of modeLibravatar Ryan Dwyer2018-11-15
| | | | | | | | | | | | | | config->current_mode is a pointer into the config->modes list, and each mode has already been freed. Same with bars.