Commit graph

5428 commits

Author SHA1 Message Date
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.
2018-05-09 16:32:55 +00:00
Drew DeVault 7d707e6865
Merge pull request #1945 from RyanDwyer/fix-title-scissor
Fix titles on rotated outputs
2018-05-09 07:58:23 -04:00
Drew DeVault 98fe969e96
Merge branch 'master' into fix-title-scissor 2018-05-09 07:42:51 -04:00
Drew DeVault baa34e0f1c
Merge pull request #1944 from RyanDwyer/swaybar-respect-pango
Swaybar: Respect pango_markup config
2018-05-09 07:42:24 -04:00
Ryan Dwyer 4922d269b8 Fix titles on rotated outputs
If the output is rotated, the scissor box needs to be transformed in the
opposite rotation.
2018-05-09 16:41:54 +10:00
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.
2018-05-09 14:54:22 +10:00
emersion 22b873332f
Merge pull request #1942 from VincentVanlaer/xwayland-lazy
Update xwayland start for new API
2018-05-08 23:05:08 +01:00
Drew DeVault 8fa53df670
Merge pull request #1933 from emersion/swaybg-asser-side-effects
swaybg: remove assertions with side-effects
2018-05-07 14:02:17 -04:00
emersion ef063953e8
Merge pull request #1934 from emersion/update-layer-shell
Update layer-shell protocol
2018-05-07 18:27:32 +01:00
emersion 026b68a108
Update layer-shell protocol 2018-05-07 17:28:42 +01:00
emersion a3ecfcfc2c
swaybg: remove assertions with side-effects 2018-05-07 17:26:21 +01:00
Vincent Vanlaer 95dac2a069 Update xwayland start for new API
https://github.com/swaywm/wlroots/pull/959
2018-05-07 14:23:44 +02:00
Drew DeVault 73cc92213f
Merge pull request #1920 from yorickvP/master
meson.build: Try looking for `pam` when `libpam` isn't found.
2018-05-06 08:52:27 -04:00
Yorick van Pelt f31b2e1b33
meson.build: Look for '-lpam', not '-llibpam'.
See #1920 for more information.
2018-05-06 14:10:09 +02:00
Drew DeVault eda57e7761
Merge pull request #1927 from atomnuker/revert-libexec
Revert PR #1881
2018-05-05 19:37:13 -04:00
Rostislav Pehlivanov 3b6629af3c Revert "Install swaybar and swaybg under /usr/lib/sway"
This reverts commit f2c209c299.
2018-05-06 00:20:57 +01:00
Rostislav Pehlivanov b592351eef Revert "exec_always: Search for executables in /usr/lib/sway"
This reverts commit 7709340727.
2018-05-06 00:20:49 +01:00
Rostislav Pehlivanov 2c0c3dc7cc Revert "Make the LIBDIR path configurable"
This reverts commit 1670b46bf6.
2018-05-06 00:19:52 +01:00
Rostislav Pehlivanov 0cdc47ab1e Revert "Meson: Replace option instlibdir with libexecdir"
This reverts commit 830c4ef74c.
2018-05-06 00:19:43 +01:00
Rostislav Pehlivanov cf602687c6 Revert "command/exec_always: Use wlr_log for logging errors in the child process"
This reverts commit 177c67e6b8.
2018-05-06 00:19:29 +01:00
Rostislav Pehlivanov ac903c8752 Revert "security.d: Update install paths for swaybar and swaybg"
This reverts commit b4249166f3.
2018-05-06 00:19:12 +01:00
emersion 54265bf65e
Merge pull request #1917 from RyanDwyer/pango-markup
Implement pango support
2018-05-05 23:38:09 +01:00
Ryan Dwyer 556ff5f50e Implement pango support
Implements support for the pango: prefix in the font command.

Closes #1903.
2018-05-06 08:25:22 +10:00
emersion 72ce50737d
Merge pull request #1926 from RyanDwyer/fix-setenv-path
Fix PATH setenv() in exec_always
2018-05-05 23:24:02 +01:00
Ryan Dwyer 1daf69477e Fix PATH setenv() in exec_always 2018-05-06 08:16:34 +10:00
emersion c96ac2ff2a
Merge pull request #1881 from nbraud/usr-lib
Install swaybar and swaybg under /usr/lib/sway
2018-05-05 20:09:34 +01:00
emersion 786727d8bb
Merge branch 'master' into usr-lib 2018-05-05 20:03:46 +01:00
Drew DeVault 967b14c227
Merge pull request #1924 from nbraud/spelling
swaymsg: Fix spelling in error message
2018-05-05 15:00:40 -04:00
Nicolas Braud-Santoni 30c00b2696
Merge branch 'master' into spelling 2018-05-05 20:42:17 +02:00
Nicolas Braud-Santoni cb2a3e9036 swaymsg: Fix spelling in error message 2018-05-05 20:40:34 +02:00
Nicolas Braud-Santoni b4249166f3 security.d: Update install paths for swaybar and swaybg 2018-05-05 17:42:41 +02:00
Nicolas Braud-Santoni 177c67e6b8 command/exec_always: Use wlr_log for logging errors in the child process 2018-05-05 17:22:46 +02:00
Nicolas Braud-Santoni 830c4ef74c Meson: Replace option instlibdir with libexecdir
Derive a value from it, called `rundir` rather than writing join_paths(libexecdir,
'sway') all over the place.
2018-05-05 17:22:46 +02:00
Nicolas Braud-Santoni 1670b46bf6 Make the LIBDIR path configurable 2018-05-05 17:22:46 +02:00
Nicolas Braud-Santoni 7709340727 exec_always: Search for executables in /usr/lib/sway 2018-05-05 17:22:46 +02:00
Nicolas Braud-Santoni f2c209c299 Install swaybar and swaybg under /usr/lib/sway 2018-05-05 17:22:46 +02:00
Drew DeVault a8d1b05bac
Merge pull request #1915 from RyanDwyer/title-format
Implement title_format
2018-05-05 11:08:33 -04:00
Ryan Dwyer 936226845f Add extra check for view title being NULL 2018-05-05 22:29:37 +10:00
Ryan Dwyer 5d6d24e71a Move code for re-arranging after font height change into a common place 2018-05-05 22:29:37 +10:00
Ryan Dwyer da7d6642d3 Refactor parse_title_format() 2018-05-05 22:29:37 +10:00
Ryan Dwyer d10a0a8c41 Fix memory leak in title_format command 2018-05-05 22:29:37 +10:00
Ryan Dwyer 228c478e8d Implement title_format
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-05 22:29:37 +10:00
Drew DeVault 8dae168b77
Merge pull request #1918 from RyanDwyer/title-scissor
Use scissor to render title texture
2018-05-05 07:25:10 -04:00
Ryan Dwyer e83e5487be Use scissor to render title texture
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-05 20:32:31 +10:00
emersion fbcbbb976c
Merge pull request #1912 from Hello71/patch-1
Check for NULL in container_update_title
2018-05-04 16:21:38 +01:00
Alex Xu (Hello71) 3202c45054 Check for NULL in container_update_title
Fixes crash when opening Firefox developer tools.
2018-05-04 11:10:01 -04:00
Drew DeVault 029c9b1796
Merge pull request #1907 from emersion/backend-input-mapping
Default to backend-wise input device mapping, if any
2018-05-03 10:46:02 -04:00
emersion 812525246a
Merge pull request #1901 from swaywm/touch-hide-cursor
Hide cursor on touch down
2018-05-03 15:45:40 +01:00
Drew DeVault d233e75eec Hide cursor on touch down 2018-05-03 10:39:34 -04:00
Drew DeVault 00e62c214d Fix alphabetization of command list 2018-05-03 09:24:13 -04:00