aboutsummaryrefslogtreecommitdiff
path: root/sway
AgeCommit message (Collapse)Author
2018-08-02Merge branch 'master' into fix-resize-wiggleemersion
2018-08-01Merge pull request #2391 from RyanDwyer/fix-popups-v2Drew DeVault
Fix popups (v2)
2018-08-01ipc: remove extraneous valuesIan Fan
Removes IPC_EVENT_MODIFIER and IPC_EVENT_INPUT, which were sway-specific and unused
2018-08-01ipc: prevent emitting a workspace::focus event when moving a container to a ↵Ian Fan
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.
2018-08-01ipc: fix workspace::focus event behaviourIan Fan
2018-08-01ipc: add tick eventIan Fan
2018-08-01ipc: always include old property in workspace eventsIan Fan
2018-08-01ipc: add workspace::reload eventIan Fan
2018-08-01ipc: add binding eventIan Fan
2018-08-01ipc: add window::move eventsIan Fan
2018-08-01ipc: fix workspace::move calls argument orderIan Fan
2018-08-01ipc: only emit window::create event for viewsIan Fan
2018-08-01ipc: add window::mark eventIan Fan
2018-08-01ipc: add barconfig_update event on config reloadIan Fan
2018-08-01ipc: add workspace::empty eventIan Fan
2018-08-01ipc: add window::title eventIan Fan
2018-08-01ipc: add window::focus eventIan Fan
2018-08-01ipc: add window::close eventIan Fan
2018-08-01ipc: add workspace::init eventIan Fan
2018-08-01ipc: add shutdown eventIan Fan
2018-08-01XCursor is not configured if no pointer device is availablechr0me
2018-08-01Correctly track saved surfaces during multiple transactionsRyan Dwyer
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.
2018-07-31Create list for mouse binds when creating new modeBrian Ashworth
2018-07-31Close popups when changing focusRyan Dwyer
Also reverts the send frame done changes from the previous commit.
2018-07-31Fix popupsRyan Dwyer
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)
2018-07-30Fix segfault with fullscreenemersion
2018-07-30Merge pull request #2367 from emersion/iterator-redesignDrew DeVault
Refactor surface iterators
2018-07-30Merge pull request #2381 from frsfnrrg/key-repeatDrew DeVault
Implement key repeat for keybindings
2018-07-30delete references to swaygrabEric Engestrom
2018-07-30Fix title textures on scale changeBrian Ashworth
2018-07-29Bindings use advised keyboard repeat parametersfrsfnrrg
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.
2018-07-29Implement key repeat for pressed key bindingsfrsfnrrg
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.
2018-07-29Don't give focus if xwayland window has a type hintemersion
2018-07-29Make output_surface_for_each_surface_iterator staticemersion
2018-07-29Remove unused output_from_wlr_outputemersion
2018-07-29Remove output_surface_for_each_surface from headeremersion
2018-07-29Completely switch over to new iteratorsemersion
2018-07-29wip: redesign output_view_for_each_surface iteratoremersion
2018-07-29wip: redesign output_layer_for_each_surface iteratoremersion
2018-07-29wip: redesign output_drag_icons_for_each_surface iteratoremersion
2018-07-29wip: redesign output_unmanaged_for_each_surface iteratoremersion
2018-07-29Merge branch 'master' into tap-button-map-man-fixRyan Dwyer
2018-07-29Merge pull request #2376 from swaywm/virtual-keyboardemersion
Add virtual keyboard protocol
2018-07-29Escaping underscores in tap_button_mapMarius Orcsik
2018-07-28Add virtual keyboard protocolDrew DeVault
Ref #2373
2018-07-28Don't enable numlock by default. This fixes an annoying issue where laptop ↵Geoff Greer
keyboards would have 'numlock mode' enabled, remapping parts of the alphabet to numbers.
2018-07-28Merge pull request #2360 from RyanDwyer/floating-containersDrew DeVault
Allow containers to float
2018-07-28Merge pull request #2368 from RyanDwyer/handle-out-of-fdsDrew DeVault
Handle out-of-fd situations gracefully for transaction and urgent timers
2018-07-28Fix crash when a deferred command destroys a workspaceRyan Dwyer
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.
2018-07-28Focus child when showing a scratchpad containerRyan Dwyer