aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
2018-09-14Merge pull request #2631 from ianyfan/swaybaremersion-12/+9
bar: remove i3bar_block_free in favour of i3bar_block_unref
2018-09-14bar: remove i3bar_block_free in favour of i3bar_block_unrefIan Fan-12/+9
2018-09-14Merge pull request #2629 from RedSoxFan/fix-654Drew DeVault-2/+24
Allow spaces in background file path
2018-09-14Update for swaywm/wlroots#1243emersion-35/+35
2018-09-14Address ianyfan's commentsBrian Ashworth-3/+19
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.
2018-09-13Escape spaces in background file pathBrian Ashworth-0/+6
2018-09-13Allow spaces in background file pathsBrian Ashworth-3/+3
2018-09-13Merge pull request #2628 from RyanDwyer/remove-rejigger-assertionemersion-3/+1
Remove bad assertion in workspace_rejigger
2018-09-13Remove bad assertion in workspace_rejiggerRyan Dwyer-3/+1
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.
2018-09-12Merge pull request #2622 from ianyfan/i3bar-block-refDrew DeVault-6/+19
i3bar: count references to blocks
2018-09-12i3bar: count references to blocksIan Fan-6/+19
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
2018-09-12Merge pull request #2620 from ianyfan/commandsemersion-8/+19
commands: when moving a container, restore focus properly
2018-09-11Merge pull request #2624 from RedSoxFan/update-tex-in-cmd-clientDrew DeVault-0/+17
Update textures for cmd_client_* commands
2018-09-11Merge pull request #2621 from emersion/fix-unmap-segfaultDrew DeVault-1/+4
Don't use handler_context in view_unmap
2018-09-11Update textures for cmd_client_* commandsBrian Ashworth-0/+17
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.
2018-09-11Merge pull request #2618 from RyanDwyer/tiling-dragDrew DeVault-21/+318
Implement tiling drag
2018-09-12Minor fixes to tiling drag implementationRyan Dwyer-15/+19
* 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
2018-09-11Don't use handler_context in view_unmapemersion-1/+4
2018-09-11commands: when moving container, remove its gapsIan Fan-0/+1
2018-09-11commands: when moving container, restore focus properlyIan Fan-8/+18
2018-09-11Fix crash in workspace_wrap_childrenRyan Dwyer-1/+4
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.
2018-09-11Fix line lengthRyan Dwyer-1/+2
2018-09-11Fix dropzone box on scaled outputsRyan Dwyer-1/+4
2018-09-11Implement tiling dragRyan Dwyer-6/+274
Hold floating_modifier and drag a tiling view to a new location.
2018-09-11Introduce tiling_drag directiveRyan Dwyer-0/+18
2018-09-11Rename OP_MOVE to OP_MOVE_FLOATINGRyan Dwyer-14/+14
In preparation for introducing OP_MOVE_TILING.
2018-09-10Merge pull request #2617 from wmww/cursor-enter-on-focus-changeDrew DeVault-2/+15
Give windows pointer focus immediately
2018-09-10Minor fixWilliam Wold-1/+2
2018-09-10Minor fixWilliam Wold-1/+1
2018-09-10Prevent stacked layout from crashingWilliam Wold-1/+1
2018-09-10Give windows pointer focus immediately when they are switched toWilliam Wold-1/+13
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.
2018-09-10Merge pull request #2613 from apreiml/fix_no_last_focus_failemersion-1/+4
handle_layer_shell_surface: Do not crash if seat doesn't have focus
2018-09-10handle_layer_shell_surface: Do not crash if seat doesn't have focusArmin Preiml-1/+4
2018-09-08Merge pull request #2609 from ianyfan/commandsDrew DeVault-1/+1
commands: prevent running empty seat command
2018-09-08commands: prevent running empty seat commandIan Fan-1/+1
2018-09-08Merge pull request #2530 from apreiml/ipc_missing_get_treeDrew DeVault-19/+138
start adding missing ipc properties
2018-09-08Merge pull request #2602 from RyanDwyer/fix-title-texturesDrew DeVault-48/+111
Fix gaps in title textures and vertically center them
2018-09-08code style fixesArmin Preiml-12/+10
2018-09-08get_tree: percent cast to double on divisionArmin Preiml-4/+4
2018-09-08get_tree: default valuesArmin Preiml-16/+33
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.
2018-09-08missing ipc stuff: rebase to typesafetyArmin Preiml-16/+120
2018-09-08Align titles to baselineRyan Dwyer-32/+49
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.
2018-09-08Fix gaps in title textures and vertically center themRyan Dwyer-22/+68
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.
2018-09-07Merge pull request #2603 from emersion/fix-dndDrew DeVault-6/+8
Fix drag-and-drop
2018-09-07Fix drag-and-dropemersion-6/+8
2018-09-06Merge pull request #2600 from RyanDwyer/fix-workspace-switchingDrew DeVault-1/+1
Fix workspace switching
2018-09-07Fix workspace switchingRyan Dwyer-1/+1
The output also needs to be made dirty when focusing a new output.
2018-09-06Merge pull request #2594 from RyanDwyer/fix-pinentryemersion-6/+6
Float views when min == max on either dimension
2018-09-06Merge pull request #2593 from RyanDwyer/dont-be-so-dirtyDrew DeVault-4/+1
Don't dirty outputs unnecessarily
2018-09-06Float views when min == max on either dimensionRyan Dwyer-6/+6
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.