aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
2018-08-08Merge pull request #2440 from RedSoxFan/bg-swaynag-reading-onlyDrew DeVault-1/+1
Don't call swaynag_log for bg when not reading
2018-08-08Don't call swaynag_log for bg when not readingBrian Ashworth-1/+1
2018-08-08Merge pull request #2439 from RedSoxFan/fix-2434Drew DeVault-14/+57
Allow a fallback color to be specified for swaybg
2018-08-08Allow a fallback color to be specified for swaybgBrian Ashworth-14/+57
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-1/+1
[RFC] Fix segv when sway is terminating
2018-08-08Merge branch 'master' into masterBrian Ashworth-276/+692
2018-08-08私の日本語が上手じゃないですねDrew DeVault-1/+1
2018-08-08Remove setcap instructionsDrew DeVault-24/+4
These are obsolete, we don't require them anymore.
2018-08-08Merge pull request #2436 from RyanDwyer/fix-floating-deco-focusemersion-9/+7
Fix focus when clicking floating decorations
2018-08-08Don't call send_pointer_notify_button when doing move or resizeRyan Dwyer-1/+2
2018-08-08Focus floating views when beginning move/resize operationsRyan Dwyer-4/+3
2018-08-08Rename container_at_view to surface_at_view and make it return voidRyan Dwyer-6/+5
2018-08-08Fix focus when clicking floating decorationsRyan Dwyer-2/+1
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-33/+99
Implement move to workspace on a floating container
2018-08-08Deny moving a sticky container to workspace if it's the same outputRyan Dwyer-9/+35
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-54/+47
* 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-7/+54
Also adjusts container_floating_translate to not change the current properties directly.
2018-08-07Merge pull request #2432 from RyanDwyer/fix-move-crashDrew DeVault-1/+0
Fix crash when running `move container to workspace back_and_forth`
2018-08-07Merge pull request #2433 from RyanDwyer/fix-sticky-infinite-loopDrew DeVault-10/+13
Fix infinite loop when focusing sticky containers via workspace command
2018-08-07Fix infinite loop when focusing sticky containers via workspace commandRyan Dwyer-10/+13
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-1/+0
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-0/+2
Fix memory leaks in get_socketpath
2018-08-06ipc-client: fix memory leaks in get_socketpathIan Fan-0/+2
2018-08-06Merge pull request #2428 from RyanDwyer/workspace-move-to-outputBrian Ashworth-23/+49
Move workspace moving code out of container_move_to
2018-08-06Merge branch 'master' into workspace-move-to-outputBrian Ashworth-189/+531
2018-08-06Merge pull request #2268 from emersion/server-decoration-bordersDrew DeVault-11/+153
Enable borders on floating SSD xdg-shell views
2018-08-06Merge pull request #2392 from ianyfan/commandsDrew DeVault-178/+378
Fix commands: criteria, layout, move, workspace
2018-08-06Handle views created after decoration mode is sent for xdg-shell-v6emersion-3/+22
2018-08-06Handle views created after decoration mode is sent for xdg-shellemersion-4/+61
2018-08-06Listen to server-decoration mode changesemersion-6/+72
2018-08-07Move workspace moving code out of container_move_toRyan Dwyer-23/+49
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-3/+25
2018-08-06commands: check for special workspaces in workspace & move commandsIan Fan-58/+59
2018-08-06commands: document <criteria> focusIan Fan-0/+3
2018-08-06commands: add optional flags to moveIan Fan-35/+81
2018-08-06commands: complete workspace implementationIan Fan-46/+59
Allow optional --no-auto-back-and-forth flag, as well as refactoring some logic
2018-08-06commands: fix layout implementation (also better name for previous split layout)Ian Fan-21/+30
2018-08-06commands: better type for con_id string lengthIan Fan-3/+3
2018-08-06commands: complete move implementationIan Fan-66/+103
2018-08-06commands: complete layout implementationIan Fan-18/+70
2018-08-06commands: allow __focused__ for con_id criterionIan Fan-4/+15
2018-08-06commands: allow "first", "last", "newest" and "recent" as values for urgent ↵Ian Fan-4/+10
criteria
2018-08-05Fix segv when sway is terminatingMariusz Bialonczyk-1/+1
I've got the following SIGSEGV when terminating sway: ``` Program terminated with signal SIGSEGV, Segmentation fault. 0x00005607dc603af5 in view_unmap (view=0x5607dcb3d350) at ../sway/tree/view.c:599 599 if (surviving_ancestor->type >= C_WORKSPACE) { ``` surviving_ancestor was NULL at that time This commit is trying to fix this problem.
2018-08-05Merge pull request #2422 from ggreer/compiler-errors1.0-alpha.5emersion-0/+2
Fix compiler errors.
2018-08-05Fix compiler errors.Geoff Greer-0/+2
- Some platforms don't expose kill() unless _POSIX_C_SOURCE is defined. - fork(), execl(), and setsid() need unistd.h on some platforms. Basically, this fixes some platform-specific build errors.
2018-08-04Merge pull request #2418 from RyanDwyer/separate-rootemersion-394/+413
Separate root-related code
2018-08-04Move workspace pid code to root.cRyan Dwyer-119/+121
2018-08-04Separate root-related codeRyan Dwyer-275/+292
This creates a root.c and moves bits and pieces from elsewhere into it. * layout_init has been renamed to root_create and moved into root.c * root_destroy has been created and is called on shutdown * scratchpad code has been moved into root.c, because hidden scratchpad containers are stored in the root struct
2018-08-04Merge pull request #2419 from RedSoxFan/fix-2416Ryan Dwyer-0/+5
Check correct ws for sticky and fix floating iter
2018-08-04Merge branch 'master' into fix-2416Ryan Dwyer-19/+222