aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorLines
2018-06-23Fix crash when deleting last child in a tabbed or stacked containerRyan Dwyer-0/+11
There was no `current` child because the container was destroyed. This makes it fall back to looking in the parent's current children list.
2018-06-23Merge remote-tracking branch 'upstream/master' into atomicRyan Dwyer-0/+2
2018-06-23Implement atomic layout updates for tree operationsRyan Dwyer-13/+37
This implements atomic layout updates for when views map, reparent or unmap.
2018-06-19Perform (partial) server initialization before dropping privileges.Tobias Blass-0/+2
Some operations during backend creation (e.g. becoming DRM master) require CAP_SYS_ADMIN privileges. At this point, sway has dropped them already, though. This patch splits the privileged part of server_init into its own function and calls it before dropping its privileges. This fixes the bug with minimal security implications.
2018-06-18Automatically float xwayland windowsemersion-6/+28
2018-06-18Preserve buffers during transactionsRyan Dwyer-4/+5
* Also fix parts of the rendering where it was rendering the pending state instead of current.
2018-06-18Merge remote-tracking branch 'upstream/master' into atomicRyan Dwyer-3/+4
2018-06-12Fix keyboard shortcut handling inconsistenciesfrsfnrrg-2/+3
* Ensure that modifier keys are identified even when the next key does not produce a keysym. This requires that modifier change tracking be done for each sway_shortcut_state. * Permit regular and --release shortcuts on the same key combination. Distinct bindings are identified for press and release cases; note that the release binding needs to be identified for both key press and key release events. * Maintain ascending sort order for the shortcut state list, and keep track of the number of pressed key ids, for simpler (and hence faster) searching of the list of key bindings. * Move binding duplicate detection into get_active_binding to avoid duplicating error messages.
2018-06-12Sort binding key listsfrsfnrrg-1/+1
Sort the list comprising the set of keys for the binding in ascending order. (Keyboard shortcuts depend only on the set of simultaneously pressed keys, not their order, so this change should have no external effect.) This simplifies comparisons between bindings.
2018-06-11Merge remote-tracking branch 'upstream/master' into atomicRyan Dwyer-0/+39
2018-06-09Merge pull request #2124 from emersion/drag-icons1.0-alpha.3Drew DeVault-0/+21
Render drag icons
2018-06-09Implement gaps (PR #2047)Nate Symer-0/+13
2018-06-09Render drag iconsemersion-0/+21
2018-06-09Refactor everything that needs to arrange windowsRyan Dwyer-13/+6
* The arrange_foo functions are now replaced with arrange_and_commit, or with manually created transactions and arrange_windows x2. * The arrange functions are now only called from the highest level functions rather than from both high level and low level functions. * Due to the previous point, view_set_fullscreen_raw and view_set_fullscreen are both merged into one function again. * Floating and fullscreen are now working with transactions.
2018-06-09Make main properties be the pending stateRyan Dwyer-1/+3
2018-06-09WIP: Atomic layout updates ground workRyan Dwyer-19/+120
2018-06-08Restore workspaces to outputs based on priorityBrian Ashworth-0/+9
2018-06-08swaylock: implement ^U to clear bufferDominique Martinet-25/+1
The whole state->xcb.modifiers thing didn't work at all (always 0) The xkb doc says "[xkb_state_serialize_mods] should not be used in regular clients; please use the xkb_state_mod_*_is_active API instead" so here it is
2018-06-06Switch output storing from list_t to wl_listBrian Ashworth-1/+3
2018-06-06Store sway_outputs so that they can be reenabledBrian Ashworth-0/+4
2018-06-03Refactor cmd_output to use config_subcommandBrian Ashworth-0/+14
2018-06-02Address emersion's feedback on peek_lineBrian Ashworth-1/+1
2018-06-02Address first round of review for generic blocksBrian Ashworth-3/+3
2018-06-02Support braces on next line for config blocksBrian Ashworth-0/+1
2018-06-02Make command block implementation genericBrian Ashworth-14/+17
2018-06-01Comment to explain sway_shortcut_state listsfrsfnrrg-0/+13
2018-06-01Rewrite shortcut handling code to avoid hardcoded valuesfrsfnrrg-6/+12
The same shortcut algorithm is now used for keycodes, raw keysyms, and translated keysyms. Pressed keysyms are now stored in association with the keycodes that generated them. Modifier keycodes (and associated keysyms) are identified retroactively by the subsequent change to the modifier flags.
2018-06-01Fix mpv damage issue when unfullscreening into floatingRyan Dwyer-0/+3
2018-06-01Don't unmaximize floating viewsRyan Dwyer-3/+0
2018-06-01Don't let xwayland views set position unless unmanagedRyan Dwyer-0/+1
2018-06-01Remove container_self_or_parent_floatingRyan Dwyer-6/+0
2018-06-01Rename container_set_geometry_from_viewRyan Dwyer-1/+1
2018-06-01Store swayc coordinates as layout-localRyan Dwyer-4/+3
2018-06-01Rename set_maximized functions to set_tiledRyan Dwyer-2/+2
2018-06-01Fix unfullscreening a floating viewRyan Dwyer-0/+1
2018-06-01Replace is_floating boolean with functionRyan Dwyer-4/+8
2018-06-01Use L_FLOATING instead of reapable booleanRyan Dwyer-4/+1
2018-06-01Implement floatingRyan Dwyer-5/+34
2018-06-01Send frame done to floating viewsDrew DeVault-1/+0
Also centers them on the screen when initially floated In the future we'll need a more sophisticated solution than that
2018-06-01Implement `floating enable`Drew DeVault-0/+7
2018-05-28Support i3's legacy force_focus_wrapping commandBrian Ashworth-0/+1
2018-05-28Merge pull request #2060 from RedSoxFan/focus-wrappingemersion-2/+8
Implement focus_wrapping
2018-05-27Implement focus_wrappingBrian Ashworth-2/+8
2018-05-28Fix ancestor typosRyan Dwyer-2/+2
2018-05-27Merge pull request #2050 from smlx/focus-fixDrew DeVault-1/+4
Focus containers only on entry.
2018-05-27Implement bindsym/bindcode --lockedfrsfnrrg-0/+1
Adds the --locked flag to bindsym and bindcode commands. When a keyboard's associated seat has an exclusive client (i.e, a screenlocker), then bindings are only executed if they have the locked flag. When there is no such client, this restriction is lifted.
2018-05-28Move previous cursor_position inline.Scott Leggett-5/+3
2018-05-28Store previous position in sway_cursor.Scott Leggett-2/+7
2018-05-28Merge branch 'master' into cmd-swapRyan Dwyer-1/+7
2018-05-27client/pool-buffer: munmap in destroy_bufferemersion-0/+2