summaryrefslogtreecommitdiffstats
path: root/sway
Commit message (Collapse)AuthorAge
* 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)
* Fix segfault with fullscreenLibravatar emersion2018-07-30
|
* Merge pull request #2367 from emersion/iterator-redesignLibravatar Drew DeVault2018-07-30
|\ | | | | Refactor surface iterators
| * Make output_surface_for_each_surface_iterator staticLibravatar emersion2018-07-29
| |
| * Remove unused output_from_wlr_outputLibravatar emersion2018-07-29
| |
| * 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.
* | | delete references to swaygrabLibravatar Eric Engestrom2018-07-30
| | |
* | | Fix title textures on scale changeLibravatar Brian Ashworth2018-07-30
|/ /
* / Don't give focus if xwayland window has a type hintLibravatar emersion2018-07-29
|/
* Merge branch 'master' into tap-button-map-man-fixLibravatar Ryan Dwyer2018-07-29
|\
| * Merge pull request #2376 from swaywm/virtual-keyboardLibravatar emersion2018-07-29
| |\ | | | | | | Add virtual keyboard protocol
| | * Add virtual keyboard protocolLibravatar Drew DeVault2018-07-28
| | | | | | | | | | | | Ref #2373
* | | Escaping underscores in tap_button_mapLibravatar Marius Orcsik2018-07-29
|/ /
* / Don't enable numlock by default. This fixes an annoying issue where laptop ↵Libravatar Geoff Greer2018-07-28
|/ | | | keyboards would have 'numlock mode' enabled, remapping parts of the alphabet to numbers.
* Merge pull request #2360 from RyanDwyer/floating-containersLibravatar Drew DeVault2018-07-28
|\ | | | | Allow containers to float
| * Focus child when showing a scratchpad containerLibravatar Ryan Dwyer2018-07-28
| |
| * Fix crash when unfloating child of container into empty workspaceLibravatar Ryan Dwyer2018-07-28
| |
| * Send floating container to scratchpad when a child is focusedLibravatar Ryan Dwyer2018-07-28
| |
| * Fix focus mode_toggle from a child of a floating containerLibravatar Ryan Dwyer2018-07-28
| | | | | | | | | | | | Also fixes a crash when unfloating a window. It needs to add it back to the tiling tree as a sibling rather than a child, because the reference container might be a view.
| * Allow splitting a floating viewLibravatar Ryan Dwyer2018-07-28
| |
| * When unfloating, return container to previously focused tiled containerLibravatar Ryan Dwyer2018-07-28
| | | | | | | | | | | | This introduces seat_get_focus_inactive_tiling and updates `focus mode_toggle` to use it instead, because the previous method wasn't guaranteed to return a tiling view.
| * Operate on floating split container when a child is focusedLibravatar Ryan Dwyer2018-07-28
| |
| * Fix crash when a child of a floating container is in the scratchpadLibravatar Ryan Dwyer2018-07-28
| |
| * Fix clicking a floating split containerLibravatar Ryan Dwyer2018-07-28
| | | | | | | | | | | | | | It would focus the split container rather than the child. This commit makes it track the child and the split container separately and send the surface click to the child.
| * Allow containers to floatLibravatar Ryan Dwyer2018-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Things worth noting: * When a fullscreen view unmaps, the check to unset fullscreen on the workspace has been moved out of view_unmap and into container_destroy, because containers can be fullscreen too * The calls to `container_reap_empty_recursive(workspace)` have been removed from `container_set_floating`. That function reaps upwards so it wouldn't do anything. I'm probably the one who originally added it... * My fix (b14bd1b0b1536039e4f46fe94515c7c44e7afc61) for the tabbed child crash has a side effect where when you close a floating container, focus is not given to the tiled container again. I've removed my fix and removed the call to `send_cursor_motion` from `seat_set_focus_warp`. We should consider calling it from somewhere earlier in the call stack.
* | Merge pull request #2368 from RyanDwyer/handle-out-of-fdsLibravatar Drew DeVault2018-07-28
|\ \ | | | | | | Handle out-of-fd situations gracefully for transaction and urgent timers
| * | Include errno.hLibravatar Ryan Dwyer2018-07-28
| | |
| * | Show errno description in logLibravatar Ryan Dwyer2018-07-28
| | |
| * | Handle out-of-fd situations gracefully for transaction and urgent timersLibravatar Ryan Dwyer2018-07-28
| |/
* / Fix crash when a deferred command destroys a workspaceLibravatar Ryan Dwyer2018-07-28
|/ | | | | | | | | | | | | | | | | Example config that produces the crash (with a single output): workspace 1 workspace 2 Prior to this commit, container_workspace_free would manually mark the L_FLOATING container as destroying and free it. This assumed the L_FLOATING container would never be involved in a transaction. This was a safe assumption when it was implemented, but became an incorrect assumption once parent/child relationships became transactionised. This commit removes the L_FLOATING free from container_workspace_free. When the workspace is destroyed, it starts the normal destroy process on the L_FLOATING container so it can be freed via transactions.
* Second attempt at fixing transaction use-after-freeLibravatar Ryan Dwyer2018-07-28
| | | | | | | | | The solution used in 073ac425d5bf6f6393eb91d9b5f84e3caa68f511 doesn't work in all cases because the freed instruction might be ahead in the list, not necessarily behind. The new solution delays running the queue until after the loop has finished iterating, thus avoiding the problem completely.
* Fix use after free in transactionsLibravatar Ryan Dwyer2018-07-28
| | | | | | | In set_instructions_ready, calling set_instruction_ready may cause any number of transactions to get applied, which removes them from the list being iterated. The iteration variables need to be adjusted accordingly.
* Preserve workspace nameLibravatar Mihai Coman2018-07-28
|
* Fix assign to workspaceLibravatar Ryan Dwyer2018-07-27
|
* Refactor view_mapLibravatar Ryan Dwyer2018-07-26
| | | | | | | | | | | * Move workspace selection into separate function * Instead of keeping a `prev_focus` variable, do the check in `should_focus` (ie. views can only take focus if they're mapped into the active workspace) * Fix assign-to-output - it previously set `prev_focus` but should be `target_sibling` * Remove call to `workspace_switch` as we'll only ever focus the view if it's in the active workspace
* Fix indentLibravatar Ryan Dwyer2018-07-26
|
* Allow containers to be fullscreenLibravatar Ryan Dwyer2018-07-26
|
* Fix LEDs for configured modifier statesLibravatar ProgAndy2018-07-25
|
* Restrict CapsLock and NumLock commands to the configuration fileLibravatar ProgAndy2018-07-25
|
* Add documentation for xkb_capslock/xkb_numlockLibravatar ProgAndy2018-07-25
|
* Add xkb_numlock/xkb_capslock commands (#2311)Libravatar ProgAndy2018-07-25
|
* Implement setting NumLock and CapsLock statusLibravatar ProgAndy2018-07-25
| | | | | | After setting the keymap, try to enable NumLock and disable CapsLock. This only works if sway has the xkb master state and controls the keyboard. Prepare configuration settings for later use as well.