aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-11Merge pull request #2452 from janza/position-command-fix-argsDrew DeVault
Man page: Correct argument format for output position config
2018-08-11man: Correct format for output position configJosip Janzic
2018-08-11Merge pull request #2451 from RyanDwyer/fix-ancestor-crashDrew DeVault
Fix container_has_ancestor crash
2018-08-12Fix container_has_ancestor crashRyan Dwyer
Fixes #2450
2018-08-11Merge pull request #2449 from RyanDwyer/remove-bfsDrew DeVault
Remove container_for_each_descendant_bfs
2018-08-11Merge pull request #2448 from RyanDwyer/remove-container-has-childemersion
Remove container_has_child
2018-08-11Remove container_for_each_descendant_bfsRyan Dwyer
The function was not used. Also renames container_for_each_descendant_dfs to just container_for_each_descendant.
2018-08-11Remove container_has_childRyan Dwyer
In all cases you can use container_has_ancestor with the arguments swapped, which is faster than container_has_child.
2018-08-10Merge pull request #2447 from ianyfan/swaynag-leakemersion
Fix memory leak in swaynag
2018-08-10swaynag: destroy old cursor theme when updatedIan Fan
2018-08-10Merge pull request #2446 from emersion/xwayland-unmanaged-orderDrew DeVault
xwayland: fix unmanaged surfaces order
2018-08-10xwayland: fix unmanaged surfaces orderemersion
2018-08-09Merge pull request #2441 from RyanDwyer/finish-resize-commandsBrian Ashworth
Finish resize commands
2018-08-10Update resize documentationRyan Dwyer
2018-08-10Implement resize set <width> <height> for tiled containersRyan Dwyer
Unlike i3, this implementation allows px measurements. Also fixes a sane size check.
2018-08-10Implement resize grow|shrink <direction> <amount> for tiled containersRyan Dwyer
2018-08-09Remove obsolete security sanity checkDrew DeVault
2018-08-08Merge pull request #2440 from RedSoxFan/bg-swaynag-reading-onlyDrew DeVault
Don't call swaynag_log for bg when not reading
2018-08-08Don't call swaynag_log for bg when not readingBrian Ashworth
2018-08-08Merge pull request #2439 from RedSoxFan/fix-2434Drew DeVault
Allow a fallback color to be specified for swaybg
2018-08-08Allow a fallback color to be specified for swaybgBrian Ashworth
This allows for a color to be set when the wallpaper does not fill the entire output. If specified, the fallback color is also used when the image path is inaccessible.
2018-08-08Merge pull request #2423 from manio/masterBrian Ashworth
[RFC] Fix segv when sway is terminating
2018-08-08Merge branch 'master' into masterBrian Ashworth
2018-08-08私の日本語が上手じゃないですねDrew DeVault
2018-08-08Remove setcap instructionsDrew DeVault
These are obsolete, we don't require them anymore.
2018-08-08Merge pull request #2436 from RyanDwyer/fix-floating-deco-focusemersion
Fix focus when clicking floating decorations
2018-08-08Don't call send_pointer_notify_button when doing move or resizeRyan Dwyer
2018-08-08Focus floating views when beginning move/resize operationsRyan Dwyer
2018-08-08Rename container_at_view to surface_at_view and make it return voidRyan Dwyer
2018-08-08Fix focus when clicking floating decorationsRyan Dwyer
It's not right for container_at_view to only return the swayc if a surface was clicked.
2018-08-08Merge pull request #2420 from RyanDwyer/floating-move-to-workspaceDrew DeVault
Implement move to workspace on a floating container
2018-08-08Deny moving a sticky container to workspace if it's the same outputRyan Dwyer
Rationale: Sticky containers are always assigned to the visible workspace. The basic idea here is to check the destination's output (move.c:190). But if the command was `move container to workspace x` then a workspace might have been created for it. We could destroy the workspace in this case, but that results in unnecessary IPC events. To avoid this, the logic for `move container to workspace x` has been adjusted. It now delays creating the workspace until the end, and uses `workspace_get_initial_output` to determine and check the output before creating it.
2018-08-08Fix edge cases when moving floating container to new workspaceRyan Dwyer
* Removes container_floating_move_to_container, instead opting to put that logic in container_move_to * In the seat code, focusing a floating view now updates the pending state only and lets the next transaction carry it over to the current state. This is required, otherwise it would crash. * When unfullscreening a floating container, an output check is now done to see if it should center it.
2018-08-08Implement move to workspace on a floating containerRyan Dwyer
Also adjusts container_floating_translate to not change the current properties directly.
2018-08-07Merge pull request #2432 from RyanDwyer/fix-move-crashDrew DeVault
Fix crash when running `move container to workspace back_and_forth`
2018-08-07Merge pull request #2433 from RyanDwyer/fix-sticky-infinite-loopDrew DeVault
Fix infinite loop when focusing sticky containers via workspace command
2018-08-07Fix infinite loop when focusing sticky containers via workspace commandRyan Dwyer
In a multi-output setup, if a sticky container is on one output and focus is on the other output, and you run (eg) `workspace 1` to focus the workspace containing the sticky container, an infinite loop would occur. It would loop infinitely because it would remove the sticky container from the workspace, add it back to the same workspace, and then decrement the iterator variable. The fix just wraps the loop in a workspace comparison.
2018-08-07Fix crash when running `move container to workspace back_and_forth`Ryan Dwyer
The back_and_forth condition is intended to be handled in the else-if block, but this was never reached because it remained in the first block's conditions.
2018-08-06Merge pull request #2430 from ianyfan/socketpath-leaksDrew DeVault
Fix memory leaks in get_socketpath
2018-08-06ipc-client: fix memory leaks in get_socketpathIan Fan
2018-08-06Merge pull request #2428 from RyanDwyer/workspace-move-to-outputBrian Ashworth
Move workspace moving code out of container_move_to
2018-08-06Merge branch 'master' into workspace-move-to-outputBrian Ashworth
2018-08-06Merge pull request #2268 from emersion/server-decoration-bordersDrew DeVault
Enable borders on floating SSD xdg-shell views
2018-08-06Merge pull request #2392 from ianyfan/commandsDrew DeVault
Fix commands: criteria, layout, move, workspace
2018-08-06Handle views created after decoration mode is sent for xdg-shell-v6emersion
2018-08-06Handle views created after decoration mode is sent for xdg-shellemersion
2018-08-06Listen to server-decoration mode changesemersion
2018-08-07Move workspace moving code out of container_move_toRyan Dwyer
container_move_to handled moving containers to new parents, as well as moving workspaces to new outputs. This commit removes the workspace-moving code from this function and introduces workspace_move_to_output. Moving workspaces using container_move_to only happened from the move command, so it's been implemented as a static function in that file. Simplifying container_move_to makes it easier for me to fix some issues in #2420.
2018-08-06commands: fix workspace edge casesIan Fan
2018-08-06commands: check for special workspaces in workspace & move commandsIan Fan