summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
...
| * | Address ianyfan's commentsLibravatar Brian Ashworth2018-09-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wordexp p is now initialized to {0} to prevent a segfault on wordfree in the failure case. File paths with single quotes and double quotes are now supported. The quote can either be wrapped in the other quote or escaped with three backslashes. Additionally to make passing file paths with double quotes to swaybg easier, instead of enclosing the path given to swaybg in quotes, all spaces, single quotes, and double quotes in the resulting path are now escaped with a single backslash.
| * | Escape spaces in background file pathLibravatar Brian Ashworth2018-09-13
| | |
| * | Allow spaces in background file pathsLibravatar Brian Ashworth2018-09-13
|/ /
| * Update for swaywm/wlroots#1243Libravatar emersion2018-09-14
|/
* Merge pull request #2628 from RyanDwyer/remove-rejigger-assertionLibravatar emersion2018-09-13
|\ | | | | Remove bad assertion in workspace_rejigger
| * Remove bad assertion in workspace_rejiggerLibravatar Ryan Dwyer2018-09-13
|/ | | | | | | | The assertion can be (rightfully) triggered by creating layout V[H[view view] view] and moving the top right view to the right. After removing the assertion I found the container being moved needs its size reset to prevent it from being sized wrongly after arranging.
* Merge pull request #2622 from ianyfan/i3bar-block-refLibravatar Drew DeVault2018-09-12
|\ | | | | i3bar: count references to blocks
| * i3bar: count references to blocksLibravatar Ian Fan2018-09-12
|/ | | | | | | | | This prevents blocks from being destroyed before their hotspots are destroyed, in case it is used for a pending click event that fires between the bar receiving a new status, which destroys the block, and the bar rendering the new status, which destroys the hotspot; this problem can be easily produced by scrolling on a block that immediately causes a new status to be sent, with multiple outputs
* Merge pull request #2620 from ianyfan/commandsLibravatar emersion2018-09-12
|\ | | | | commands: when moving a container, restore focus properly
| * commands: when moving container, remove its gapsLibravatar Ian Fan2018-09-11
| |
| * commands: when moving container, restore focus properlyLibravatar Ian Fan2018-09-11
| |
* | Merge pull request #2624 from RedSoxFan/update-tex-in-cmd-clientLibravatar Drew DeVault2018-09-11
|\ \ | | | | | | Update textures for cmd_client_* commands
| * | Update textures for cmd_client_* commandsLibravatar Brian Ashworth2018-09-11
| | | | | | | | | | | | | | | | | | Since the `client.{focused,focused_inactive,unfocused,urgent}` commands change colors, the textures need to be updated otherwise the textures and the rest of the title bar may utilize different colors.
* | | Merge pull request #2621 from emersion/fix-unmap-segfaultLibravatar Drew DeVault2018-09-11
|\ \ \ | |/ / |/| | Don't use handler_context in view_unmap
| * | Don't use handler_context in view_unmapLibravatar emersion2018-09-11
| |/
* | Merge pull request #2618 from RyanDwyer/tiling-dragLibravatar Drew DeVault2018-09-11
|\ \ | |/ |/| Implement tiling drag
| * Minor fixes to tiling drag implementationLibravatar Ryan Dwyer2018-09-12
| | | | | | | | | | | | | | | | * Make container_add_sibling's `after` argument a boolean. * Use a constant for drop layout border * Make thickness an int * Add button state check * Move comments in seat_end_move_tiling
| * Fix crash in workspace_wrap_childrenLibravatar Ryan Dwyer2018-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When workspace_wrap_children is called on a workspace which has a fullscreen child and the fullscreen child is a direct child of the workspace, sway would crash. The workspace's fullscreen pointer is unset when the fullscreen container is detached and applied again when added to a parent, but in this case the parent hadn't yet been added to the workspace which meant con->workspace was NULL. The fix makes container_handle_fullscreen_reparent return if there's no workspace, and the fullscreen pointer is reapplied in workspace_wrap_children.
| * Fix line lengthLibravatar Ryan Dwyer2018-09-11
| |
| * Fix dropzone box on scaled outputsLibravatar Ryan Dwyer2018-09-11
| |
| * Implement tiling dragLibravatar Ryan Dwyer2018-09-11
| | | | | | | | Hold floating_modifier and drag a tiling view to a new location.
| * Introduce tiling_drag directiveLibravatar Ryan Dwyer2018-09-11
| |
| * Rename OP_MOVE to OP_MOVE_FLOATINGLibravatar Ryan Dwyer2018-09-11
|/ | | | In preparation for introducing OP_MOVE_TILING.
* Merge pull request #2617 from wmww/cursor-enter-on-focus-changeLibravatar Drew DeVault2018-09-10
|\ | | | | Give windows pointer focus immediately
| * Minor fixLibravatar William Wold2018-09-10
| |
| * Minor fixLibravatar William Wold2018-09-10
| |
| * Prevent stacked layout from crashingLibravatar William Wold2018-09-10
| |
| * Give windows pointer focus immediately when they are switched toLibravatar William Wold2018-09-10
|/ | | | | | Fixes #2401 (aka #2558) Previously, when switching windows, pointer focus was not changed until the pointer was moved. This makes the pointer enter happen immediately, without the side effects of other attempted fixes.
* Merge pull request #2613 from apreiml/fix_no_last_focus_failLibravatar emersion2018-09-10
|\ | | | | handle_layer_shell_surface: Do not crash if seat doesn't have focus
| * handle_layer_shell_surface: Do not crash if seat doesn't have focusLibravatar Armin Preiml2018-09-10
| |
* | Merge pull request #2609 from ianyfan/commandsLibravatar Drew DeVault2018-09-08
|\ \ | |/ |/| commands: prevent running empty seat command
| * commands: prevent running empty seat commandLibravatar Ian Fan2018-09-08
|/
* Merge pull request #2530 from apreiml/ipc_missing_get_treeLibravatar Drew DeVault2018-09-08
|\ | | | | start adding missing ipc properties
| * code style fixesLibravatar Armin Preiml2018-09-08
| |
| * get_tree: percent cast to double on divisionLibravatar Armin Preiml2018-09-08
| |
| * get_tree: default valuesLibravatar Armin Preiml2018-09-08
| | | | | | | | | | | | | | | | | | | | Added default values for all nodes, because the i3 get_tree always returns all fields inside the json objects. Add geometry and window for views. Window is only availabel on x11 windows otherwise it's NULL. Calculate percent only if parent is not empty to avoid division by 0.
| * missing ipc stuff: rebase to typesafetyLibravatar Armin Preiml2018-09-08
| |
* | Merge pull request #2602 from RyanDwyer/fix-title-texturesLibravatar Drew DeVault2018-09-08
|\ \ | |/ |/| Fix gaps in title textures and vertically center them
| * Align titles to baselineLibravatar Ryan Dwyer2018-09-08
| | | | | | | | | | | | | | | | | | | | | | | | | | This does the following: * Adds a baseline argument to get_text_size (the baseline is the distance from the top of the texture to the baseline). * Stores the baseline in the container when calculating the title height. * Takes the baseline into account when calculating the config's max font height. * When rendering, pads the textures according to the baseline so they line up.
| * Fix gaps in title textures and vertically center themLibravatar Ryan Dwyer2018-09-08
|/ | | | | | | | | | | | | | | | | | | There was code that attempted to fill in the gap below the title texture when the texture isn't tall enough, but this only worked when the output was positioned at 0,0. The reason is that render_rect expects a box passed in a hybrid layout-local/output-buffer-local system, and we were passing purely output-buffer-local. I've added a comment documenting this. By the way, we can't use layout-local coordinates for the rectangle box because in some cases we set the box based on a texture size. Texture sizes are buffer-local, and we'd have to divide them to bring it back to layout-local which means losing precision. We could use output-buffer-local coordinates for the box, but this would require translating the coordinates from layout-local to output-buffer-local in many places during rendering. This patch also vertically centers the text inside the title bar.
* Merge pull request #2603 from emersion/fix-dndLibravatar Drew DeVault2018-09-07
|\ | | | | Fix drag-and-drop
| * Fix drag-and-dropLibravatar emersion2018-09-07
| |
* | Merge pull request #2600 from RyanDwyer/fix-workspace-switchingLibravatar Drew DeVault2018-09-06
|\ \ | | | | | | Fix workspace switching
| * | Fix workspace switchingLibravatar Ryan Dwyer2018-09-07
|/ / | | | | | | The output also needs to be made dirty when focusing a new output.
* | Merge pull request #2594 from RyanDwyer/fix-pinentryLibravatar emersion2018-09-06
|\ \ | | | | | | Float views when min == max on either dimension
| * | Float views when min == max on either dimensionLibravatar Ryan Dwyer2018-09-06
| | | | | | | | | | | | | | | | | | This fixes pinentry-gtk-2, but might make other views floating which would otherwise be tiled. This patch is more of a trial which could end up becoming a permanent fix.
* | | Merge pull request #2593 from RyanDwyer/dont-be-so-dirtyLibravatar Drew DeVault2018-09-06
|\ \ \ | |/ / |/| | Don't dirty outputs unnecessarily
| * | Don't dirty outputs unnecessarilyLibravatar Ryan Dwyer2018-09-06
|/ /
* | Merge pull request #2592 from RyanDwyer/fix-fullscreen-unmap-focusLibravatar emersion2018-09-06
|\ \ | | | | | | Second attempt at restoring focus when closing a fullscreen view
| * | Second attempt at restoring focus when closing a fullscreen viewLibravatar Ryan Dwyer2018-09-06
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | To reproduce the problem this is fixing, create H[view view view], fullscreen one of the views and close it. The entire workspace will be given focus rather than one of the siblings. This happens because we emit the destroy event, so the seat code tries to find a new focus, but the view it finds is still believed to be hidden by the fullscreen view so it's discarded and the workspace is used instead. This clears the workspace's fullscreen pointer prior to emitting the destroy event so that the seat code finds an appropriate new focus.