Geoff Greer
0a79983f94
Allow setting border widths for normal borders using default_border.
...
In Sway 0.15, `default_border normal 1` would set 1px wide borders. This recreates that behavior.
7 years ago
Ryan Dwyer
8595fc5a6f
Update criteria documentation
7 years ago
Ryan Dwyer
0bf0a4fa40
Don't unescape \\ in criteria
7 years ago
Ryan Dwyer
3b0c26d149
Overhaul criteria implementation
...
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
7 years ago
Drew DeVault
8d99edf787
Merge pull request #1948 from RyanDwyer/focus-parent-border
...
Highlight all child borders when using focus parent
7 years ago
Ryan Dwyer
83e314bf51
Highlight all child borders when using focus parent
7 years ago
Drew DeVault
fbddd34b47
Merge pull request #1923 from emersion/full-damage-tracking
...
Implement full damage tracking
7 years ago
emersion
44fcc06efd
Fix damage tracking on HiDPI
7 years ago
emersion
90614f3a63
Accumulate surface damage even if whole=true
7 years ago
emersion
c0f5d740a5
Damage container when updating title
7 years ago
emersion
70b80b4698
Damage container on focus
7 years ago
emersion
bec80f1551
Damage borders when damaging view
7 years ago
emersion
98f7ee8f59
Render borders with damage
7 years ago
emersion
c8a9ea3903
Implement full damage tracking
7 years ago
Drew DeVault
3bab37858a
Merge pull request #1932 from emersion/fix-layer-shell-exclusive
...
layer-shell: use usable_area when arranging non-exclusive layer surfaces
7 years ago
emersion
64bd4d5685
Merge pull request #1950 from RyanDwyer/fix-font-height-reload
...
Use reasonable default for font height
7 years ago
Ryan Dwyer
497793b5b7
Use reasonable default for font height
...
Fixes #1949
7 years ago
emersion
3d29e73e72
layer-shell: use usable_area when arranging non-exclusive layer surfaces
7 years ago
emersion
94cf3f1b17
Merge pull request #1947 from dlrobertson/fix_null_deref
...
Fix null deref in server_init
7 years ago
Dan Robertson
4ebd6f3507
Fix null deref in server_init
...
If the backend fails to be created, log an error and immidiately return
from server_init.
7 years ago
Drew DeVault
7d707e6865
Merge pull request #1945 from RyanDwyer/fix-title-scissor
...
Fix titles on rotated outputs
7 years ago
Drew DeVault
98fe969e96
Merge branch 'master' into fix-title-scissor
7 years ago
Drew DeVault
baa34e0f1c
Merge pull request #1944 from RyanDwyer/swaybar-respect-pango
...
Swaybar: Respect pango_markup config
7 years ago
Ryan Dwyer
4922d269b8
Fix titles on rotated outputs
...
If the output is rotated, the scissor box needs to be transformed in the
opposite rotation.
7 years ago
Ryan Dwyer
e012b05b00
Swaybar: Respect pango_markup config
...
Makes swaybar respect the user's pango_markup configuration in the
workspace buttons and binding mode indicator.
7 years ago
emersion
22b873332f
Merge pull request #1942 from VincentVanlaer/xwayland-lazy
...
Update xwayland start for new API
7 years ago
Drew DeVault
8fa53df670
Merge pull request #1933 from emersion/swaybg-asser-side-effects
...
swaybg: remove assertions with side-effects
7 years ago
emersion
ef063953e8
Merge pull request #1934 from emersion/update-layer-shell
...
Update layer-shell protocol
7 years ago
emersion
026b68a108
Update layer-shell protocol
7 years ago
emersion
a3ecfcfc2c
swaybg: remove assertions with side-effects
7 years ago
Vincent Vanlaer
95dac2a069
Update xwayland start for new API
...
https://github.com/swaywm/wlroots/pull/959
7 years ago
Drew DeVault
73cc92213f
Merge pull request #1920 from yorickvP/master
...
meson.build: Try looking for `pam` when `libpam` isn't found.
7 years ago
Yorick van Pelt
f31b2e1b33
meson.build: Look for '-lpam', not '-llibpam'.
...
See #1920 for more information.
7 years ago
Drew DeVault
eda57e7761
Merge pull request #1927 from atomnuker/revert-libexec
...
Revert PR #1881
7 years ago
Rostislav Pehlivanov
3b6629af3c
Revert "Install swaybar and swaybg under /usr/lib/sway"
...
This reverts commit f2c209c299
.
7 years ago
Rostislav Pehlivanov
b592351eef
Revert "exec_always: Search for executables in /usr/lib/sway"
...
This reverts commit 7709340727
.
7 years ago
Rostislav Pehlivanov
2c0c3dc7cc
Revert "Make the LIBDIR path configurable"
...
This reverts commit 1670b46bf6
.
7 years ago
Rostislav Pehlivanov
0cdc47ab1e
Revert "Meson: Replace option `instlibdir` with `libexecdir`"
...
This reverts commit 830c4ef74c
.
7 years ago
Rostislav Pehlivanov
cf602687c6
Revert "command/exec_always: Use wlr_log for logging errors in the child process"
...
This reverts commit 177c67e6b8
.
7 years ago
Rostislav Pehlivanov
ac903c8752
Revert "security.d: Update install paths for swaybar and swaybg"
...
This reverts commit b4249166f3
.
7 years ago
emersion
54265bf65e
Merge pull request #1917 from RyanDwyer/pango-markup
...
Implement pango support
7 years ago
Ryan Dwyer
556ff5f50e
Implement pango support
...
Implements support for the pango: prefix in the font command.
Closes #1903 .
7 years ago
emersion
72ce50737d
Merge pull request #1926 from RyanDwyer/fix-setenv-path
...
Fix PATH setenv() in exec_always
7 years ago
Ryan Dwyer
1daf69477e
Fix PATH setenv() in exec_always
7 years ago
emersion
c96ac2ff2a
Merge pull request #1881 from nbraud/usr-lib
...
Install swaybar and swaybg under /usr/lib/sway
7 years ago
emersion
786727d8bb
Merge branch 'master' into usr-lib
7 years ago
Drew DeVault
967b14c227
Merge pull request #1924 from nbraud/spelling
...
swaymsg: Fix spelling in error message
7 years ago
Nicolas Braud-Santoni
30c00b2696
Merge branch 'master' into spelling
7 years ago
Nicolas Braud-Santoni
cb2a3e9036
swaymsg: Fix spelling in error message
7 years ago
Nicolas Braud-Santoni
b4249166f3
security.d: Update install paths for swaybar and swaybg
7 years ago