aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-21Add app_id and class to get_tree outputvilhalmer
2018-08-21Merge pull request #2505 from RyanDwyer/fix-set-fullscreenDrew DeVault
Fix sending fullscreen event to view
2018-08-22Fix sending fullscreen event to viewRyan Dwyer
Fixes #2504
2018-08-20Merge pull request #2503 from RyanDwyer/use-wlr-edgesBrian Ashworth
Replace enum resize_edge with wlr_edges
2018-08-21Replace enum resize_edge with wlr_edgesRyan Dwyer
2018-08-20Merge pull request #2502 from minus7/workspace-namesDrew DeVault
Improve new workspace name selection
2018-08-20Improve new workspace name selectionminus
Improves upon 18e425ed by using the first assigned workspace instead of the last one. The order isn't explicitly guaranteed to be the same as in the config, but in general works.
2018-08-20Merge pull request #2501 from RedSoxFan/fix-bad-free-swaynagDrew DeVault
Fix bad-free in swaynag
2018-08-20Fix bad-free in swaynagBrian Ashworth
2018-08-20Merge pull request #2498 from RyanDwyer/fix-jumping-viewsemersion
Fix jumping views
2018-08-20Fix jumping viewsRyan Dwyer
Fixes #2490. To be honest I'm not sure why this fixes the issue. I observed that I could only make the view jump if I resized it to the smallest possible size first. Then I had a suspicion that we were accidentally factoring in the title and border sizes into the view size when it uses CSD. So I changed that and it appears to have fixed the jumping issue. I guess when we factor the title and borders in, we send a configure to the surface with a size smaller than the minimum, and it comes back with a surface at the minimum size. We interpret this as an unexpected resize, and this somehow makes it jump.
2018-08-19Merge pull request #2483 from RyanDwyer/floating-emit-reparentDrew DeVault
Send enter/leave events for floating views
2018-08-19Merge pull request #2496 from RyanDwyer/fix-transaction-crashDrew DeVault
Fix crash when a view destroys with pending transactions
2018-08-20Fix crash when adding outputRyan Dwyer
2018-08-20Clean up tracked outputs when an output is destroyedRyan Dwyer
2018-08-20Send output enter/leave events correctlyRyan Dwyer
Previously we used a reparent event to detect when a view changes parent, then sent an output enter/leave to the surfaces if needed. This worked for tiling views but not floating views, as floating views can intersect another output without changing parent. The solution implemented for floating views also applies cleanly to tiling views, so the previous method has been completely replaced and the reparent event has been removed. This introduces a new function container_discover_outputs. This function compares the container's `current` position to the outputs, sends enter and leave events as needed, and keeps track of which outputs it's intersecting in a new `container->outputs` list. If it has entered a new output with a different scale then the title and marks textures will also be recreated at the new scale. The function is called when a transaction applies. This is convenient as it means we don't have to call it from various places. There is imperfect rendering when a floating view overlaps two outputs with different scales. It renders correctly for the most recently entered output, but there is only one title texture so it renders incorrectly on the old output. Fixes #2482
2018-08-20Fix crash when a view destroys with pending transactionsRyan Dwyer
We were removing the saved buffer when one transaction applies, then didn't have a new buffer to save when the next transaction ran. This made the rendering code crash as it had no surface to use. This commit makes it continue to hold the buffer if the view is destroying and has more transactions. Additionally, a check is added when saving the buffer to make sure there's no one already there.
2018-08-19Merge pull request #2493 from RyanDwyer/fix-popup-positionemersion
Fix popup position when parent uses geometry
2018-08-19Merge pull request #2478 from RyanDwyer/standardise-debugDrew DeVault
Standardise debug variables
2018-08-19Fix popup position when parent uses geometryRyan Dwyer
Fixes #2489.
2018-08-19Merge pull request #2487 from RyanDwyer/workspace-floating-listemersion
Replace hacky L_FLOATING container with a list
2018-08-19Replace hacky L_FLOATING container with a listRyan Dwyer
Workspaces previously had a magical `workspace->floating` container, which had a layout of L_FLOATING and whose children were actual floating views. This allowed some conveniences, but was a hacky solution because the container has to be exempt from focus, coordinate transactions with the workspace, and omit emitting IPC events (which we didn't do). This commit changes it to be a list directly in the sway_workspace. The L_FLOATING layout is no longer used so this has been removed as well. * Fixes incorrect check in the swap command (it checked if the containers had the L_FLOATING layout, but this layout applied to the magical container). * Introduces workspace_add_floating
2018-08-19Use enum for damage debug optionsRyan Dwyer
2018-08-19Standardise debug variablesRyan Dwyer
This makes all debug options stored in a single struct rather than in various places, changes/fixes the behaviour of existing options, and introduces some new options. * Fixes damage issues with `-Drender-tree` texture (by removing scissor) * Offsets the render tree overlay's `y` position for those who have swaybar at the top * Replaces `-Ddamage=rerender` with `-Dnodamage` * Replaces `-Ddamage=highlight` with `-Dhighlight-damage` * Replaces `-Dtxn-debug` with `-Dtxn-wait` * Introduces `-Dnoatomic` * Removes the `create_time` and `ms_arranging` figures from transactions and the log message. Transactions are created after arranging and the create time is of no significance. * Fixes `-Dtxn-debug` (now `-Dtxn-wait`) not working.
2018-08-19Merge pull request #2453 from ianyfan/commandsRyan Dwyer
More commands
2018-08-19Merge branch 'master' into commandsRyan Dwyer
2018-08-18Merge pull request #2466 from RyanDwyer/geometryDrew DeVault
Fix geometry
2018-08-19Merge pull request #2484 from ianyfan/con-for-each-child-fixRyan Dwyer
Fix double iterating in container_for_each_child
2018-08-18commands: move newly-stickied containers to focused workspaceIan Fan
2018-08-18Fix double iterating in container_for_each_childIan Fan
2018-08-18commands: prevent focusing mode with no containersIan Fan
Explicitly fail when trying to focus tiling/floating when there are no tiling/floating containers.
2018-08-18commands: complete assign commandIan Fan
2018-08-18commands: saner workspace number handlingIan Fan
2018-08-18commands: handle quoted exec commandIan Fan
2018-08-18commands: fix documentation formatting mistakes for move commandIan Fan
2018-08-18commands: require set variable to start with $Ian Fan
2018-08-18commands: add nopIan Fan
2018-08-18Merge pull request #2473 from RyanDwyer/iterators-per-typeDrew DeVault
Implement iterators per container type
2018-08-18Implement iterators per container typeRyan Dwyer
This introduces the following `for_each` functions: * root_for_each_workspace * root_for_each_container * output_for_each_workspace * output_for_each_container * workspace_for_each_container And introduces the following `find` functions: * root_find_output * root_find_workspace * root_find_container * output_find_workspace * output_find_container * workspace_find_container * container_find_child And removes the following functions: * container_descendants * container_for_each_descendant * container_find This change is preparing the way for demoting sway_container. Eventually these functions will accept and return sway_outputs, sway_workspaces and sway_containers (meaning a C_CONTAINER or C_VIEW). This change also makes it easy to handle abnormalities like the workspace floating list, root's scratchpad list and (once implemented) root's saved workspaces list for when there's no connected outputs.
2018-08-18Merge pull request #2460 from RyanDwyer/implement-mousedownDrew DeVault
Implement mousedown operation
2018-08-18Merge pull request #2481 from RyanDwyer/rename-functionsDrew DeVault
Rename container_sort_workspaces and container_wrap_children
2018-08-18Rename container_sort_workspaces and container_wrap_childrenRyan Dwyer
This commit renames container_sort_workspaces to output_sort_workspaces and moves it to output.c. This also renames container_wrap_children to workspace_wrap_children and moves it to workspace.c. This function is only called with workspaces.
2018-08-18Merge pull request #2480 from RyanDwyer/fix-mod-resizeemersion
Fix mod+resize
2018-08-18Fix mod+resizeRyan Dwyer
Fixes #2479. It was missing a mod_pressed check. This also moves the parent traversal into the `if` block.
2018-08-18Fix nitpickRyan Dwyer
2018-08-18Store geometry in the view and handle any floating view resizingRyan Dwyer
2018-08-18Set current size when a floating xwayland view resizesRyan Dwyer
This avoids sending an unnecessary configure.
2018-08-18Handle xwayland views sending new sizes in their commitsRyan Dwyer
2018-08-18Add get_geometry for xdg_shell_v6Ryan Dwyer
2018-08-18Render saved buffer using saved geometryRyan Dwyer