summaryrefslogtreecommitdiffstats
path: root/sway
Commit message (Collapse)AuthorAge
* swaybar, swaylock, & tree/container: Set cairo font options to render text ↵Libravatar Geoff Greer2018-09-22
| | | | and lines with subpixel hinting (if available).
* Merge pull request #2660 from RyanDwyer/fix-scratchpad-iterationLibravatar emersion2018-09-22
|\ | | | | Fix double iteration of scratchpad containers
| * Fix double iteration of scratchpad containersLibravatar Ryan Dwyer2018-09-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | root_for_each_container and root_find_container were using incorrect logic to determine if a container was hidden in the scratchpad. Containers will have a NULL parent if they are a direct child of a workspace. Containers will have a NULL workspace if they are hidden in the scratchpad. The incorrect check meant that root_for_each_container would run the callback on scratchpad containers twice. This meant that executing a command such as `[class="$something"] scratchpad show` would cause the command to run twice, resulting in the container being shown and hidden again which is effectively a no op. Fixes #2655.
* | Fix pango escaping and refactor escape_markup_textLibravatar Ryan Dwyer2018-09-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #2674. The cause of the issue was in get_pango_layout. When we call pango_parse_markup, `text` is the escaped string, and the unescaped string is then computed and written to `buf`. We were then passing the unescaped string to pango_layout_set_markup, but this function needs the escaped string. `buf` is not needed and has been removed. The other part of this PR refactors escape_markup_text to remove the dest_length argument and removes the -1 return value on error. It now assumes that you've allocated dest to the correct length.
* | Merge pull request #2678 from RyanDwyer/reconfigure-on-repositionLibravatar emersion2018-09-22
|\ \ | | | | | | Reconfigure xwayland views when repositioned
| * | Reconfigure xwayland views when repositionedLibravatar Ryan Dwyer2018-09-21
| | | | | | | | | | | | Fixes #2673.
* | | Merge branch 'master' into swaybar-hotplugLibravatar Brian Ashworth2018-09-21
|\| |
| * | Fix compilation against wlroots without X11 backendLibravatar Marien Zwart2018-09-21
| | |
| * | Merge branch 'master' into render-output-segfaultLibravatar Ryan Dwyer2018-09-21
| |\ \
| * | | Fix segfault in output_renderLibravatar emersion2018-09-19
| | |/ | |/|
* | | swaybar: handle hotpluggingLibravatar emersion2018-09-20
| |/ |/| | | | | Don't kill and respawn swaybars on hotplug.
* | Merge pull request #2671 from emersion/output-execute-no-focusLibravatar emersion2018-09-20
|\ \ | | | | | | Fix segfault when executing command without focus
| * | Fix segfault when executing command without focusLibravatar emersion2018-09-19
| | |
* | | Merge pull request #2676 from ianyfan/ipcLibravatar Drew DeVault2018-09-19
|\ \ \ | | | | | | | | ipc: add pid information for views in layout tree
| * | | ipc: add pid information for views in layout treeLibravatar Ian Fan2018-09-19
| | |/ | |/|
* | | Merge branch 'master' into create-output-commandLibravatar emersion2018-09-19
|\ \ \ | | |/ | |/|
| * | config: free strings fields when freeing input configLibravatar Ian Fan2018-09-19
| |/
* / Introduce create_output command (for developer use)Libravatar Ryan Dwyer2018-09-19
|/ | | | Should help with testing hotplugging.
* Fix crash moving out of tab containerLibravatar William Wold2018-09-17
|
* Merge pull request #2637 from RyanDwyer/fix-tabbed-workspace-shenanigansLibravatar Drew DeVault2018-09-16
|\ | | | | Make seat_get_active_child ignore floating children
| * Rename seat_get_active_child to seat_get_active_tiling_childLibravatar Ryan Dwyer2018-09-16
| | | | | | | | | | Also renames container to con in one function to prevent ugly line wrapping.
| * Make seat_get_active_child ignore floating childrenLibravatar Ryan Dwyer2018-09-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Fix crash when destroying an idle-inhibiting clientLibravatar Marien Zwart2018-09-16
|/ | | | | | 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.
* Fix crash when unmapping last child of a tabbed workspaceLibravatar Ryan Dwyer2018-09-16
| | | | | | | | | | | | | | * 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.
* ipc: handle NULL cases for node_get_outputLibravatar Ian Fan2018-09-15
|
* ipc: add focus information to root nodeLibravatar Ian Fan2018-09-15
|
* Merge branch 'master' into wlroots-1243Libravatar Drew DeVault2018-09-14
|\
| * Additional fix for xdg-outputLibravatar Drew DeVault2018-09-14
| |
* | Merge branch 'master' into wlroots-1243Libravatar Drew DeVault2018-09-14
|\|
| * Postfix xdg-output headersLibravatar Drew DeVault2018-09-14
| | | | | | | | "Doesn't need an update" my ass...
| * Remove redundant container creation in view initializationLibravatar Ian Fan2018-09-15
| |
| * Address ianyfan's commentsLibravatar Brian Ashworth2018-09-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Escape spaces in background file pathLibravatar Brian Ashworth2018-09-13
| |
| * Allow spaces in background file pathsLibravatar Brian Ashworth2018-09-13
| |
* | Update for swaywm/wlroots#1243Libravatar emersion2018-09-14
|/
* Remove bad assertion in workspace_rejiggerLibravatar Ryan Dwyer2018-09-13
| | | | | | | | 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.
* Merge pull request #2620 from ianyfan/commandsLibravatar emersion2018-09-12
|\ | | | | commands: when moving a container, restore focus properly
| * commands: when moving container, remove its gapsLibravatar Ian Fan2018-09-11
| |
| * commands: when moving container, restore focus properlyLibravatar Ian Fan2018-09-11
| |
* | Merge pull request #2624 from RedSoxFan/update-tex-in-cmd-clientLibravatar Drew DeVault2018-09-11
|\ \ | | | | | | Update textures for cmd_client_* commands
| * | Update textures for cmd_client_* commandsLibravatar Brian Ashworth2018-09-11
| | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #2621 from emersion/fix-unmap-segfaultLibravatar Drew DeVault2018-09-11
|\ \ \ | |/ / |/| | Don't use handler_context in view_unmap
| * | Don't use handler_context in view_unmapLibravatar emersion2018-09-11
| |/
* | Minor fixes to tiling drag implementationLibravatar Ryan Dwyer2018-09-12
| | | | | | | | | | | | | | | | * 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
* | Fix crash in workspace_wrap_childrenLibravatar Ryan Dwyer2018-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fix line lengthLibravatar Ryan Dwyer2018-09-11
| |
* | Fix dropzone box on scaled outputsLibravatar Ryan Dwyer2018-09-11
| |
* | Implement tiling dragLibravatar Ryan Dwyer2018-09-11
| | | | | | | | Hold floating_modifier and drag a tiling view to a new location.
* | Introduce tiling_drag directiveLibravatar Ryan Dwyer2018-09-11
| |
* | Rename OP_MOVE to OP_MOVE_FLOATINGLibravatar Ryan Dwyer2018-09-11
|/ | | | In preparation for introducing OP_MOVE_TILING.