summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAge
* Deny moving a sticky container to workspace if it's the same outputLibravatar Ryan Dwyer2018-08-08
| | | | | | | | | | | | | | | 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.
* Fix edge cases when moving floating container to new workspaceLibravatar Ryan Dwyer2018-08-08
| | | | | | | | | | * 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.
* Implement move to workspace on a floating containerLibravatar Ryan Dwyer2018-08-08
| | | | | Also adjusts container_floating_translate to not change the current properties directly.
* Merge pull request #2268 from emersion/server-decoration-bordersLibravatar Drew DeVault2018-08-06
|\ | | | | Enable borders on floating SSD xdg-shell views
| * Handle views created after decoration mode is sent for xdg-shellLibravatar emersion2018-08-06
| |
| * Listen to server-decoration mode changesLibravatar emersion2018-08-06
| |
* | commands: complete workspace implementationLibravatar Ian Fan2018-08-06
| | | | | | | | Allow optional --no-auto-back-and-forth flag, as well as refactoring some logic
* | commands: fix layout implementation (also better name for previous split layout)Libravatar Ian Fan2018-08-06
| |
* | commands: complete move implementationLibravatar Ian Fan2018-08-06
|/
* Move workspace pid code to root.cLibravatar Ryan Dwyer2018-08-04
|
* Separate root-related codeLibravatar Ryan Dwyer2018-08-04
| | | | | | | | | 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
* Remove swaynag_clone and use memcpyLibravatar Brian Ashworth2018-08-03
|
* Write to swaynag pipe fd directly on config errorsLibravatar Brian Ashworth2018-08-03
|
* Show swaynag on config errorsLibravatar Brian Ashworth2018-08-03
|
* Fix crash when moving cursor over a fullscreen split containerLibravatar Ryan Dwyer2018-08-03
| | | | | | Calling container_at_view fails an assertion if the container isn't a view. Calling tiling_container_at works correctly, as that function checks if the container is a view and calls container_at_view if so.
* Fix pointer events for fullscreen viewsLibravatar emersion2018-08-02
|
* Revert "Revert "Fix popups""Libravatar Ryan Dwyer2018-08-02
| | | | | | This reverts commit 9aa258d33a9baa42895214da7e82f4568fcb8f76. Reverting the revert, so that popups can be fixed.
* Merge pull request #2366 from RedSoxFan/nagbarLibravatar Drew DeVault2018-08-02
|\ | | | | Implement swaynag
| * Merge branch 'master' into nagbarLibravatar Ryan Dwyer2018-08-02
| |\
| * | swaynag: address some more of sircmpwn's commentsLibravatar Brian Ashworth2018-08-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes segfauls for any case where swaynag->outputs was not inititalized including -h/--help, -v/--version, and invalid arguments. Sets sane defaults for colors not given. Any color not given will fallback to the default color values for type error. Adds support for a hidpi cursor
| * | swaynag: fix hidpiLibravatar Brian Ashworth2018-08-01
| | |
| * | swaynag: allow more config optionsLibravatar Brian Ashworth2018-08-01
| | |
| * | swaynag: refactor {sway_,}nagbar to swaynagLibravatar Brian Ashworth2018-08-01
| | |
| * | swaynag: split config into own file and fix optindLibravatar Brian Ashworth2018-08-01
| | |
| * | swaynag: implement config file supportLibravatar Brian Ashworth2018-08-01
| | |
| * | Address first round review for swaynagLibravatar Brian Ashworth2018-08-01
| | |
| * | Support a detailed message in swaynagbarLibravatar Brian Ashworth2018-08-01
| | |
| * | Implements swaynagbarLibravatar Brian Ashworth2018-08-01
| | |
* | | Revert "Fix popups"Libravatar Drew DeVault2018-08-02
| |/ |/| | | | | This reverts commit de86d65627e96cffe77f4abf11c4a0b982326ff9.
* | Merge branch 'master' into fix-resize-wiggleLibravatar emersion2018-08-02
|\|
| * Merge pull request #2391 from RyanDwyer/fix-popups-v2Libravatar Drew DeVault2018-08-01
| |\ | | | | | | Fix popups (v2)
| | * Close popups when changing focusLibravatar Ryan Dwyer2018-07-31
| | | | | | | | | | | | Also reverts the send frame done changes from the previous commit.
| | * Fix popupsLibravatar Ryan Dwyer2018-07-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the render and container_at order for popups. Fixes #2210 For rendering: * render_view_surfaces has been renamed to render_view_toplevels * render_view_toplevels now uses output_surface_for_each_surface (which is now public), as that function uses wlr_surface_for_each_surface which doesn't descend into popups * Views now have a for_each_popup iterator, which is used by the renderer to render the focused view's popups * When rendering a popup, toplevels (xdg subsurfaces) of that popup are also rendered For sending frame done, the logic has been updated to match the rendering logic: * send_frame_done_container no longer descends into popups * for_each_popup is used to send frame done to the focused view's popups and their child toplevels For container_at: * floating_container_at is now static, which means it had to be moved higher in the file. * container_at now considers popups for the focused view before checking containers. * tiling_container_at has been introduced, so that it doesn't call container_at recursively (it would check popups recursively if it did)
| * | ipc: remove extraneous valuesLibravatar Ian Fan2018-08-01
| | | | | | | | | | | | Removes IPC_EVENT_MODIFIER and IPC_EVENT_INPUT, which were sway-specific and unused
| * | ipc: prevent emitting a workspace::focus event when moving a container to a ↵Libravatar Ian Fan2018-08-01
| | | | | | | | | | | | | | | | | | different workspace or output When a container is moved from, say, workspace 1 to workspace 2, workspace 2 is focused in order to arrange the windows before focus is moved back to workspace 1, which caused a workspace:focus event from workspace 2 to workspace 1 to be emitted. This commit inhibits that event.
| * | ipc: add tick eventLibravatar Ian Fan2018-08-01
| | |
| * | ipc: add binding eventLibravatar Ian Fan2018-08-01
| | |
| * | ipc: add window::mark eventLibravatar Ian Fan2018-08-01
| | |
| * | ipc: add shutdown eventLibravatar Ian Fan2018-08-01
| |/
* / Correctly track saved surfaces during multiple transactionsLibravatar Ryan Dwyer2018-08-01
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #2364. Suppose a view is 600px wide, and we tell it to resize to 601px during a resize operation. We create a transaction, save the 600px buffer and send the configure. This buffer is saved into the associated instruction, and is rendered while we wait for the view to commit a 601px buffer. Before the view commits the 601px buffer, suppose we tell it to resize to 602px. The new transaction will also save the buffer, but it's still the 600px buffer because we haven't received a new one yet. Then suppose the view commits its original 601px buffer. This completes the first transaction, so we apply the 601px width to the container. There's still the second (now only) transaction remaining, so we render the saved buffer from that. But this is still the 600px buffer, and we believe it's 601px. Whoops. The problem here is we can't stack buffers like this. So this commit removes the saved buffer from the instructions, places it in the view instead, and re-saves the latest buffer every time the view completes a transaction and still has further pending transactions. As saved buffers are now specific to views rather than instructions, the functions for saving and removing the saved buffer have been moved to view.c. The calls to save and restore the buffer have been relocated to more appropriate functions too, favouring transaction_commit and transaction_apply rather than transaction_add_container and transaction_destroy.
* Merge pull request #2367 from emersion/iterator-redesignLibravatar Drew DeVault2018-07-30
|\ | | | | Refactor surface iterators
| * Remove output_surface_for_each_surface from headerLibravatar emersion2018-07-29
| |
| * Completely switch over to new iteratorsLibravatar emersion2018-07-29
| |
| * wip: redesign output_view_for_each_surface iteratorLibravatar emersion2018-07-29
| |
| * wip: redesign output_layer_for_each_surface iteratorLibravatar emersion2018-07-29
| |
| * wip: redesign output_drag_icons_for_each_surface iteratorLibravatar emersion2018-07-29
| |
| * wip: redesign output_unmanaged_for_each_surface iteratorLibravatar emersion2018-07-29
| |
* | Merge pull request #2381 from frsfnrrg/key-repeatLibravatar Drew DeVault2018-07-30
|\ \ | | | | | | Implement key repeat for keybindings
| * | Bindings use advised keyboard repeat parametersLibravatar frsfnrrg2018-07-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | Now 'repeat_delay' and 'repeat_rate' control the initial delay and rate (per second) of repeated binding invocations. If the repeat delay is zero, binding repetition is disabled. When the repeat rate is zero, the binding is repeated exactly once, assuming no other key events intervene.
| * | Implement key repeat for pressed key bindingsLibravatar frsfnrrg2018-07-29
| |/ | | | | | | | | | | | | | | Each sway_keyboard is provided with a wayland timer event source. When a valid keypress binding has been found, a callback to handle_keyboard_repeat is set. Any key event will either clear the callback or (if the new key event is a valid keypress binding) delay the callback again.