aboutsummaryrefslogtreecommitdiffstats
path: root/sway
Commit message (Collapse)AuthorAge
* Wire up scdoc and rewrite sway(1)Libravatar Drew DeVault2018-05-11
|
* Merge pull request #1943 from RyanDwyer/criteria-improvementsLibravatar Drew DeVault2018-05-11
|\ | | | | Overhaul criteria implementation
| * Update criteria documentationLibravatar Ryan Dwyer2018-05-11
| |
| * Don't unescape \\ in criteriaLibravatar Ryan Dwyer2018-05-11
| |
| * Overhaul criteria implementationLibravatar Ryan Dwyer2018-05-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The criteria struct now uses properties for each token type rather than the list_t list of tokens. The reason for this is that different token types have different data types: pcre, string and number to name a few. This solution should be more flexible moving forward. A bonus of this is that criteria is now easier to understand when looking at the struct definition. The criteria parser has been rewritten because the previous one didn't support valueless pairs (eg. [class="foo" floating]). Criteria now has types. Types at the moment are CT_COMMAND, CT_ASSIGN_WORKSPACE and CT_ASSIGN_OUTPUT. i3 uses types as well. Previously the assign command was creating a criteria with 'move to workspace <name>' as its command, but this caused the window to appear briefly on the focused workspace before being moved to the assigned workspace. It now creates the view directly in the assigned workspace. Each view will only execute a given criteria once. This is achieved by storing a list of executed criteria in the view. This is the same strategy used by i3. Escaping now works properly. Previously you could do things like [class="Fire\"fox"] and the stored value would be 'Fire\"fox', but it should be (and now is) 'Fire"fox'. The public functions in criteria.c are now all prefixed with criteria_. Xwayland views now listen to the set_title, set_class and set_window_type events and criteria will be run when these happen. XDG shell has none of these events so it continues to update the title in handle_commit. Each view type's get_prop function has been split into get_string_prop and get_int_prop because some properties like the X11 window ID and window type are numeric. The following new criteria tokens are now supported: * id (X11 window ID) * instance * tiling * workspace
* | Merge pull request #1956 from ggreer/move-focusLibravatar Drew DeVault2018-05-11
|\ \ | | | | | | cmd_move_container: Focus a window on the source workspace.
| * | cmd_move_container: Focus a window on the source workspace.Libravatar Geoff Greer2018-05-10
| |/ | | | | | | In Sway 0.15, moving a window to another workspace would cause a window on the source workspace to be focused. This restores that behavior, allowing you to quickly move a lot of windows to another workspace.
* / Allow setting border widths for normal borders using default_border.Libravatar Geoff Greer2018-05-10
|/ | | | In Sway 0.15, `default_border normal 1` would set 1px wide borders. This recreates that behavior.
* Highlight all child borders when using focus parentLibravatar Ryan Dwyer2018-05-11
|
* Fix damage tracking on HiDPILibravatar emersion2018-05-10
|
* Accumulate surface damage even if whole=trueLibravatar emersion2018-05-10
|
* Damage container when updating titleLibravatar emersion2018-05-10
|
* Damage container on focusLibravatar emersion2018-05-10
|
* Damage borders when damaging viewLibravatar emersion2018-05-10
|
* Render borders with damageLibravatar emersion2018-05-10
|
* Implement full damage trackingLibravatar emersion2018-05-10
|
* Merge pull request #1932 from emersion/fix-layer-shell-exclusiveLibravatar Drew DeVault2018-05-10
|\ | | | | layer-shell: use usable_area when arranging non-exclusive layer surfaces
| * layer-shell: use usable_area when arranging non-exclusive layer surfacesLibravatar emersion2018-05-10
| |
* | Use reasonable default for font heightLibravatar Ryan Dwyer2018-05-10
|/ | | | Fixes #1949
* Fix null deref in server_initLibravatar Dan Robertson2018-05-09
| | | | | If the backend fails to be created, log an error and immidiately return from server_init.
* Fix titles on rotated outputsLibravatar Ryan Dwyer2018-05-09
| | | | | If the output is rotated, the scissor box needs to be transformed in the opposite rotation.
* Update xwayland start for new APILibravatar Vincent Vanlaer2018-05-07
| | | | https://github.com/swaywm/wlroots/pull/959
* Revert "exec_always: Search for executables in /usr/lib/sway"Libravatar Rostislav Pehlivanov2018-05-06
| | | | This reverts commit 7709340727fe2834f87b43aeeaef878694d5acd6.
* Revert "Make the LIBDIR path configurable"Libravatar Rostislav Pehlivanov2018-05-06
| | | | This reverts commit 1670b46bf6e56d37e69ab0fa32c6799e83397020.
* Revert "Meson: Replace option `instlibdir` with `libexecdir`"Libravatar Rostislav Pehlivanov2018-05-06
| | | | This reverts commit 830c4ef74c00dbe448da46cdbc576178abc5728e.
* Revert "command/exec_always: Use wlr_log for logging errors in the child ↵Libravatar Rostislav Pehlivanov2018-05-06
| | | | | | process" This reverts commit 177c67e6b89404d9d477b82c00c1353cd4696096.
* Implement pango supportLibravatar Ryan Dwyer2018-05-06
| | | | | | Implements support for the pango: prefix in the font command. Closes #1903.
* Fix PATH setenv() in exec_alwaysLibravatar Ryan Dwyer2018-05-06
|
* Merge branch 'master' into usr-libLibravatar emersion2018-05-05
|\
| * Add extra check for view title being NULLLibravatar Ryan Dwyer2018-05-05
| |
| * Move code for re-arranging after font height change into a common placeLibravatar Ryan Dwyer2018-05-05
| |
| * Refactor parse_title_format()Libravatar Ryan Dwyer2018-05-05
| |
| * Fix memory leak in title_format commandLibravatar Ryan Dwyer2018-05-05
| |
| * Implement title_formatLibravatar Ryan Dwyer2018-05-05
| | | | | | | | | | | | | | | | | | | | This implements the title_format command, with a new placeholder %shell which gets substituted with the view type (xwayland, xdg_shell_v6 or wl_shell). Example config: for_window [title=".*"] title_format %title (class=%class instance=%instance shell=%shell)
* | command/exec_always: Use wlr_log for logging errors in the child processLibravatar Nicolas Braud-Santoni2018-05-05
| |
* | Meson: Replace option `instlibdir` with `libexecdir`Libravatar Nicolas Braud-Santoni2018-05-05
| | | | | | | | | | Derive a value from it, called `rundir` rather than writing join_paths(libexecdir, 'sway') all over the place.
* | Make the LIBDIR path configurableLibravatar Nicolas Braud-Santoni2018-05-05
| |
* | exec_always: Search for executables in /usr/lib/swayLibravatar Nicolas Braud-Santoni2018-05-05
|/
* Use scissor to render title textureLibravatar Ryan Dwyer2018-05-05
| | | | | | | | This allows the title's texture to always be the full width of the text, and clipped at render time according to the desired width (eg. tabs...). As an added bonus, the texture no longer needs to be updated when containers are arranged.
* Check for NULL in container_update_titleLibravatar Alex Xu (Hello71)2018-05-04
| | | | Fixes crash when opening Firefox developer tools.
* Merge pull request #1907 from emersion/backend-input-mappingLibravatar Drew DeVault2018-05-03
|\ | | | | Default to backend-wise input device mapping, if any
| * Default to backend-wise input device mapping, if anyLibravatar emersion2018-05-03
| |
* | Hide cursor on touch downLibravatar Drew DeVault2018-05-03
| |
* | Fix alphabetization of command listLibravatar Drew DeVault2018-05-03
| |
* | Fix segfault when running the resize command without argumentsLibravatar emersion2018-05-03
|/
* Fix title texture widthLibravatar Ryan Dwyer2018-05-03
| | | | Use max of the container width or text width.
* Fix unfocused.text defaultLibravatar Drew DeVault2018-05-03
|
* Convert border_colors.text to float[4]Libravatar Drew DeVault2018-05-03
|
* Fix anti-aliasingLibravatar Drew DeVault2018-05-03
|
* Update titles when surfaces are committedLibravatar Ryan Dwyer2018-05-03
|