Tobias Blass
a5c091e302
Perform (partial) server initialization before dropping privileges.
...
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-19 00:19:57 +02:00
Drew DeVault
202ee51150
Merge pull request #2143 from vilhalmer/mark-pool-buffers-busy
...
Set pool_buffers busy when handing them out
2018-06-17 14:55:29 -07:00
vil
8884a063c1
Merge branch 'master' into mark-pool-buffers-busy
2018-06-17 17:37:58 -04:00
vilhalmer
54a5ee2747
Set pool_buffers busy when handing them out
2018-06-17 17:34:12 -04:00
Drew DeVault
7c44ca95f9
Merge pull request #2140 from Hello71/patch-2
...
swayidle: fix stack overflow on sleep
2018-06-17 11:26:57 -07:00
Alex Xu (Hello71)
7ed81cfd36
swayidle: fix stack overflow on sleep
2018-06-17 13:57:40 -04:00
Drew DeVault
378697b79d
Merge pull request #2135 from emersion/wlroots-1060
...
Update for swaywm/wlroots#1060
2018-06-16 14:07:25 -07:00
emersion
088cae45c8
Update for swaywm/wlroots#1060
2018-06-16 13:32:23 -04:00
Drew DeVault
55fe5fc580
Merge pull request #2130 from frsfnrrg/keyboard-tuning
...
Clean up keyboard handling code
2018-06-13 05:53:02 -07:00
frsfnrrg
ca061ba8bf
Fix keyboard shortcut handling inconsistencies
...
* 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-12 20:26:57 -04:00
frsfnrrg
b23cd827cf
Sort binding key lists
...
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-12 11:26:24 -04:00
Drew DeVault
867fb6aedb
Merge pull request #2124 from emersion/drag-icons
...
Render drag icons
2018-06-09 10:50:34 -07:00
Drew DeVault
d9fc381e02
Merge pull request #2047 from natesymer/master
...
Implement Gaps
2018-06-09 08:43:18 -07:00
Nate Symer
6a910b9ba5
Implement gaps (PR #2047 )
2018-06-09 09:34:56 -04:00
emersion
cfd02918c0
Render drag icons
2018-06-09 13:26:03 +01:00
emersion
21d98d5bfb
Merge pull request #2123 from emersion/fix-disabled-outputs
...
Fix compilation errors related to disabled outputs
2018-06-09 12:09:16 +01:00
emersion
88cd7616db
Fix compilation errors related to disabled outputs
2018-06-09 11:38:16 +01:00
Ryan Dwyer
0b798ed954
Merge pull request #2115 from RedSoxFan/restore-workspaces
...
Restore workspaces to output when re-enabled
2018-06-09 08:43:57 +10:00
Brian Ashworth
e2b2fb0a0e
Switch restore workspaces to a nested for-loop
2018-06-08 13:08:00 -04:00
Brian Ashworth
5c9a917df9
Restore workspaces to outputs based on priority
2018-06-08 13:08:00 -04:00
emersion
c65c84444e
Merge pull request #2121 from martinetd/swaylock-ctrl-u
...
swaylock: implement ^U to clear buffer
2018-06-08 16:03:50 +01:00
Dominique Martinet
c78ce0770a
swaylock: implement ^U to clear buffer
...
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-08 22:42:15 +09:00
emersion
acf71fe805
Merge pull request #2119 from martinetd/gcc-strtruncation
...
sway/criteria: gcc string truncation warning fix
2018-06-08 14:41:33 +01:00
emersion
231c72a141
Merge pull request #2120 from martinetd/swayidle-zombies
...
Swayidle: doublefork to not leave zombies around
2018-06-08 14:41:22 +01:00
Dominique Martinet
720313e185
sway/criteria: gcc string truncation warning fix
2018-06-08 22:30:13 +09:00
Dominique Martinet
d26a0a1a6e
sway exec command: use waitpid instead of wait
2018-06-08 22:28:28 +09:00
Dominique Martinet
2477930d90
swayidle: doublefork to not leave zombies around
2018-06-08 22:28:28 +09:00
emersion
bf6ca69ae8
Merge pull request #2118 from RedSoxFan/fix-2117
...
Remove strip quoting and fix strncpy-overlap
2018-06-08 08:55:29 +01:00
Brian Ashworth
212e4ef395
Remove strip quoting and fix strncpy-overlap
2018-06-07 20:37:08 -04:00
emersion
07bee8cffe
Merge pull request #2084 from RedSoxFan/runtime-var-expansion
...
Runtime variable expansion
2018-06-07 19:29:26 +01:00
emersion
2e289831ee
Merge pull request #2108 from RedSoxFan/store-outputs
...
Allow outputs to be re-enabled
2018-06-07 19:26:55 +01:00
Brian Ashworth
e072fbc6d9
Switch output storing from list_t to wl_list
2018-06-06 20:11:24 -04:00
Brian Ashworth
a0bbe67076
Address emersions comments on output re-enabling
2018-06-06 20:11:24 -04:00
Brian Ashworth
a1b5b93d29
Store sway_outputs so that they can be reenabled
2018-06-06 20:11:24 -04:00
Ryan Dwyer
22c1c4beb4
Merge pull request #2116 from RedSoxFan/fix-2113
...
Fix focusing after splitting tabs/stacks
2018-06-07 09:47:37 +10:00
Brian Ashworth
82b3b587dd
Remove tab/stack check for focusing after a split
2018-06-06 19:38:38 -04:00
Brian Ashworth
e7261e2917
Fix focusing after splitting tabs/stacks
2018-06-06 16:41:19 -04:00
emersion
b1e72461cf
Merge pull request #2110 from smlx/initialise-cursor-previous
...
Initialise previous cursor position.
2018-06-06 12:10:00 +01:00
Scott Leggett
609c420501
Initialise previous cursor position.
...
Fix the problem with focus jumping to the container under the cursor
when first starting sway.
2018-06-06 20:45:02 +10:00
emersion
cac400a40b
Merge pull request #2107 from tobiasblass/remove_suspicious_return
...
Remove suspicious unconditional return
2018-06-05 23:59:52 +01:00
Tobias Blass
d6d292897f
Remove suspicious unconditional return
...
This return effectively disables the log_kernel function
2018-06-05 23:27:35 +02:00
Brian Ashworth
f4870d5432
Fix logic issue in do_var_replacement
2018-06-05 10:08:00 -04:00
Brian Ashworth
067fe9d047
Support runtime var expansion and set at runtime
2018-06-05 10:08:00 -04:00
emersion
0f71547032
Merge pull request #2095 from emersion/fullscreen-damage-only-visible
...
Only send frame to visible surfaces when fullscreened
2018-06-05 11:18:52 +01:00
emersion
6b9ffbad20
Merge pull request #2103 from RyanDwyer/focus-fixes
...
Focus fixes
2018-06-05 08:44:53 +01:00
emersion
e410757fe8
Merge pull request #2106 from RedSoxFan/fix-2105
...
Fix movement crashes/issues
2018-06-05 08:44:16 +01:00
Brian Ashworth
9aaac8b8c8
Fix movement crashes/issues
2018-06-05 01:13:27 -04:00
Ryan Dwyer
1206a60977
Don't restore focus if unmapping surface wasn't focused
2018-06-04 13:31:09 +10:00
Ryan Dwyer
bcdb676abb
Don't set focus to NULL when clicking a surface which has no container
2018-06-04 11:31:25 +10:00
Ryan Dwyer
9253278328
Restore focus when unmapping layer shell surfaces
2018-06-04 11:31:07 +10:00