aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
2018-08-12Make mod+resize a floating container resize the container itselfRyan Dwyer-1/+1
Rather than resizing the split within the container.
2018-08-12Use col-resize and row-resize cursor imagesRyan Dwyer-6/+23
2018-08-12Fix right-click/popups and add state checksRyan Dwyer-3/+5
2018-08-12Allow resizing tiled views via mod keyRyan Dwyer-18/+42
2018-08-12Refactor dispatch_cursor_buttonRyan Dwyer-96/+94
There was a separate function dispatch_cursor_button_floating which dealt with the resize and move operations, but as resize is not really limited to floating views, it doesn't make as much sense to have this separate. So both functions are now combined into one. Additionally, dispatch_cursor_button now uses a pattern of returning early instead of using else-ifs.
2018-08-12Implement resizing tiled containers via cursorRyan Dwyer-34/+173
* The OP_RESIZE seat operation has been renamed to OP_RESIZE_FLOATING, and OP_RESIZE_TILING has been introduced. * Similar to the above, seat_begin_resize and handle_resize_motion have been renamed and tiling variants introduced. * resize.c's resize_tiled has to be used, so container_resize_tiled has been introduced in resize.c to allow external code to call it.
2018-08-11Merge pull request #2452 from janza/position-command-fix-argsDrew DeVault-1/+1
Man page: Correct argument format for output position config
2018-08-11man: Correct format for output position configJosip Janzic-1/+1
2018-08-11Merge pull request #2451 from RyanDwyer/fix-ancestor-crashDrew DeVault-1/+1
Fix container_has_ancestor crash
2018-08-12Fix container_has_ancestor crashRyan Dwyer-1/+1
Fixes #2450
2018-08-11Merge pull request #2449 from RyanDwyer/remove-bfsDrew DeVault-62/+15
Remove container_for_each_descendant_bfs
2018-08-11Merge pull request #2448 from RyanDwyer/remove-container-has-childemersion-22/+3
Remove container_has_child
2018-08-11Remove container_for_each_descendant_bfsRyan Dwyer-62/+15
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-22/+3
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-0/+3
Fix memory leak in swaynag
2018-08-10swaynag: destroy old cursor theme when updatedIan Fan-0/+3
2018-08-10Merge pull request #2446 from emersion/xwayland-unmanaged-orderDrew DeVault-1/+1
xwayland: fix unmanaged surfaces order
2018-08-10xwayland: fix unmanaged surfaces orderemersion-1/+1
2018-08-09Merge pull request #2441 from RyanDwyer/finish-resize-commandsBrian Ashworth-21/+81
Finish resize commands
2018-08-10Update resize documentationRyan Dwyer-9/+9
2018-08-10Implement resize set <width> <height> for tiled containersRyan Dwyer-4/+39
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-8/+33
2018-08-09Remove obsolete security sanity checkDrew DeVault-22/+0
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