aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
2018-09-18Merge pull request #2640 from ianyfan/swaybarDrew DeVault-210/+232
Overhaul swaybar protocol handling (+fixes)
2018-09-18swaybar: only free tokener when using i3bar protocolIan Fan-1/+1
2018-09-18swaybar: add debugging statements for handling i3bar jsonIan Fan-0/+16
2018-09-18swaybar: rewrite i3bar protocol handlingIan Fan-118/+128
This now correctly handles an incoming json infinite array by shifting most of the heavy listing to the json-c parser, as well as sending multiple statuses at once. It also removes the struct i3bar_protocol_state and moves its members into the status_line struct, allowing the same buffer to be used for both protocols.
2018-09-18swaybar: rewrite protocol determinationIan Fan-56/+33
This now uses the getline function to receive the header, replacing read_line_buffer, which has been deleted since it is otherwise unused. Furthermore, once the protocol has been determined, the current status is handled immediately to be shown (though this has not been added for the i3bar protocol since it has not yet been rewritten to handle this).
2018-09-18swaybar: rewrite text protocol handlingIan Fan-22/+26
This now uses getline to correctly handle multiple or long statuses. It also removes the struct text_protocol_state and moves its members into the status_line struct.
2018-09-18swaybar: only create i3bar block hotspot if click events are enabledIan Fan-13/+15
2018-09-18swaybar: send trailing comma with click event jsonIan Fan-1/+1
2018-09-18swaybar: fix empty function prototypesIan Fan-4/+4
2018-09-18swaybar: invalidate file descriptors upon closingIan Fan-4/+15
2018-09-18swaybar: remove block links upon exitIan Fan-1/+3
2018-09-17Merge pull request #2652 from emersion/swaybar-output-namesBrian Ashworth-30/+78
swaybar: use output names instead of output indexes
2018-09-17swaybar: use output names instead of output indexesemersion-30/+78
2018-09-17Merge pull request #2649 from wmww/fix-move-crashemersion-1/+1
Fix crash moving out of tab container
2018-09-17Fix crash moving out of tab containerWilliam Wold-1/+1
2018-09-16Merge pull request #2637 from RyanDwyer/fix-tabbed-workspace-shenanigansDrew DeVault-17/+26
Make seat_get_active_child ignore floating children
2018-09-16Merge pull request #2641 from marienz/inhibit-crashDrew DeVault-1/+1
Fix crash when an idle-inhibiting client exits
2018-09-16Fix crash when destroying an idle-inhibiting clientMarien Zwart-1/+1
When destroying an idle-inhibiting client, idle_inhibit_v1_check_active can get called from transaction_progress_queue on a view with a null container. view_is_visible does not handle a view in this state.
2018-09-16Rename seat_get_active_child to seat_get_active_tiling_childRyan Dwyer-15/+16
Also renames container to con in one function to prevent ugly line wrapping.
2018-09-16Make seat_get_active_child ignore floating childrenRyan Dwyer-2/+10
seat_get_active_child is used to get the active tiling child in a few places, such as outputs getting their active workspace and tabbed/stacked containers getting their visible child. When a workspace uses a tabbed or stacked layout and contains a focused floating view, calling seat_get_active_child on the workspace would incorrectly return the floating view. This changes it so it will return the tiling child. This fixes the following bug: * Create layout T[view view] then float one of the views * Attempt to click the tiling view to give it focus - it wouldn't work because seat_get_active_child would return the floating view
2018-09-16Merge pull request #2638 from RyanDwyer/fix-tab-unmap-crashemersion-0/+3
Fix crash when unmapping last child of a tabbed workspace
2018-09-16Fix crash when unmapping last child of a tabbed workspaceRyan Dwyer-0/+3
* Create layout T[view view] * Move the cursor into the title bar area * Close both views Sway would crash because container_at_tabbed would attempt to divide by zero when there are no children. The children check isn't needed for the stacked function because it doesn't divide anything by the number of children. Fixes #2636.
2018-09-15Merge pull request #2634 from ianyfan/ipcDrew DeVault-4/+21
ipc: add focus information to root node
2018-09-15ipc: handle NULL cases for node_get_outputIan Fan-3/+8
2018-09-15ipc: add focus information to root nodeIan Fan-2/+14
2018-09-14Merge pull request #2630 from emersion/wlroots-1243Drew DeVault-35/+35
Update for swaywm/wlroots#1243
2018-09-14Merge branch 'master' into wlroots-1243Drew DeVault-1/+1
2018-09-14Additional fix for xdg-outputDrew DeVault-1/+1
2018-09-14Merge branch 'master' into wlroots-1243Drew DeVault-17/+34
2018-09-14Postfix xdg-output headersDrew DeVault-1/+1
"Doesn't need an update" my ass...
2018-09-14Merge pull request #2633 from ianyfan/view-recon-fixDrew DeVault-2/+0
Remove redundant container creation in view initialisation
2018-09-15Remove redundant container creation in view initializationIan Fan-2/+0
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