aboutsummaryrefslogtreecommitdiff
path: root/sway
AgeCommit message (Collapse)Author
2018-05-12Implement __focused__ criteriaRyan Dwyer
2018-05-11Merge pull request #1943 from RyanDwyer/criteria-improvementsDrew DeVault
Overhaul criteria implementation
2018-05-11Merge pull request #1956 from ggreer/move-focusDrew DeVault
cmd_move_container: Focus a window on the source workspace.
2018-05-10cmd_move_container: Focus a window on the source workspace.Geoff Greer
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.
2018-05-10Allow setting border widths for normal borders using default_border.Geoff Greer
In Sway 0.15, `default_border normal 1` would set 1px wide borders. This recreates that behavior.
2018-05-11Update criteria documentationRyan Dwyer
2018-05-11Don't unescape \\ in criteriaRyan Dwyer
2018-05-11Overhaul criteria implementationRyan Dwyer
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
2018-05-11Highlight all child borders when using focus parentRyan Dwyer
2018-05-10Fix damage tracking on HiDPIemersion
2018-05-10Accumulate surface damage even if whole=trueemersion
2018-05-10Damage container when updating titleemersion
2018-05-10Damage container on focusemersion
2018-05-10Damage borders when damaging viewemersion
2018-05-10Render borders with damageemersion
2018-05-10Implement full damage trackingemersion
2018-05-10Merge pull request #1932 from emersion/fix-layer-shell-exclusiveDrew DeVault
layer-shell: use usable_area when arranging non-exclusive layer surfaces
2018-05-10Use reasonable default for font heightRyan Dwyer
Fixes #1949
2018-05-10layer-shell: use usable_area when arranging non-exclusive layer surfacesemersion
2018-05-09Fix null deref in server_initDan Robertson
If the backend fails to be created, log an error and immidiately return from server_init.
2018-05-09Fix titles on rotated outputsRyan Dwyer
If the output is rotated, the scissor box needs to be transformed in the opposite rotation.
2018-05-07Update xwayland start for new APIVincent Vanlaer
https://github.com/swaywm/wlroots/pull/959
2018-05-06Revert "exec_always: Search for executables in /usr/lib/sway"Rostislav Pehlivanov
This reverts commit 7709340727fe2834f87b43aeeaef878694d5acd6.
2018-05-06Revert "Make the LIBDIR path configurable"Rostislav Pehlivanov
This reverts commit 1670b46bf6e56d37e69ab0fa32c6799e83397020.
2018-05-06Revert "Meson: Replace option `instlibdir` with `libexecdir`"Rostislav Pehlivanov
This reverts commit 830c4ef74c00dbe448da46cdbc576178abc5728e.
2018-05-06Revert "command/exec_always: Use wlr_log for logging errors in the child ↵Rostislav Pehlivanov
process" This reverts commit 177c67e6b89404d9d477b82c00c1353cd4696096.
2018-05-06Implement pango supportRyan Dwyer
Implements support for the pango: prefix in the font command. Closes #1903.
2018-05-06Fix PATH setenv() in exec_alwaysRyan Dwyer
2018-05-05Merge branch 'master' into usr-libemersion
2018-05-05command/exec_always: Use wlr_log for logging errors in the child processNicolas Braud-Santoni
2018-05-05Meson: Replace option `instlibdir` with `libexecdir`Nicolas Braud-Santoni
Derive a value from it, called `rundir` rather than writing join_paths(libexecdir, 'sway') all over the place.
2018-05-05Make the LIBDIR path configurableNicolas Braud-Santoni
2018-05-05exec_always: Search for executables in /usr/lib/swayNicolas Braud-Santoni
2018-05-05Add extra check for view title being NULLRyan Dwyer
2018-05-05Move code for re-arranging after font height change into a common placeRyan Dwyer
2018-05-05Refactor parse_title_format()Ryan Dwyer
2018-05-05Fix memory leak in title_format commandRyan Dwyer
2018-05-05Implement title_formatRyan Dwyer
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)
2018-05-05Use scissor to render title textureRyan Dwyer
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.
2018-05-04Check for NULL in container_update_titleAlex Xu (Hello71)
Fixes crash when opening Firefox developer tools.
2018-05-03Merge pull request #1907 from emersion/backend-input-mappingDrew DeVault
Default to backend-wise input device mapping, if any
2018-05-03Hide cursor on touch downDrew DeVault
2018-05-03Fix alphabetization of command listDrew DeVault
2018-05-03Default to backend-wise input device mapping, if anyemersion
2018-05-03Fix segfault when running the resize command without argumentsemersion
2018-05-03Fix title texture widthRyan Dwyer
Use max of the container width or text width.
2018-05-03Fix unfocused.text defaultDrew DeVault
2018-05-03Convert border_colors.text to float[4]Drew DeVault
2018-05-03Fix anti-aliasingDrew DeVault
2018-05-03Update titles when surfaces are committedRyan Dwyer