S. Christoffer Eliesen
362413bd50
commands: cmd_results->input is duplicated/freed.
9 years ago
S. Christoffer Eliesen
88a2ddbe83
commands: Code formatting.
9 years ago
S. Christoffer Eliesen
187f0ab1c4
commands: Allow 'floating_modifier' & 'focus_follows_mouse' at runtime.
9 years ago
S. Christoffer Eliesen
af30a1b67c
ipc,commands,config: Replace cmd_status enum with cmd_results struct.
...
In i3 the ipc reply will contain a human readable error message, and
this patch replicates that behaviour.
However, that error message is also useful for logging, which this
patch takes advantage of.
E.g. instead of logging errors directly in commands.c/checkargs, it is
fed back to the caller which eventually ends up logging everything with
maximum context available (config.c/read_config).
So instead of logging e.g. "Error on line 'exit'" it will now log:
"Error on line 'exit': Can't execute from config."
9 years ago
S. Christoffer Eliesen
544c6c412a
ipc: Return correct status in ipc reply.
9 years ago
S. Christoffer Eliesen
b093a5d16f
handlers: Fix swapped top/bottom for seamless transitions.
9 years ago
Drew DeVault
2c100105bf
Move pointer during seamless transitions
9 years ago
Drew DeVault
15d0739f73
Merge pull request #199 from sce/mouse_cross_output_edge_simple
...
Switch to adjacent output when hitting output edge.
9 years ago
S. Christoffer Eliesen
edf33aad29
config: Add "seamless_mouse" to decide if pointer crosses output edges.
9 years ago
S. Christoffer Eliesen
fc1bacf034
Switch to adjacent output when hitting output edge.
...
(Currently, after switching output the relative position of the mouse
stays the same.)
9 years ago
Drew DeVault
3e2579b22c
Merge pull request #197 from sce/configure_outputs_during_reload_
...
Configure outputs during reload
9 years ago
S. Christoffer Eliesen
9b271573a9
commands: Allow changing resolution outside config load.
9 years ago
S. Christoffer Eliesen
4fea92ef0c
config: Don't try to apply bad output resolution.
9 years ago
S. Christoffer Eliesen
ca862a5bd4
config: Apply output config also during config reload.
9 years ago
S. Christoffer Eliesen
6eb8da0e14
commands,container: Tweak debug output to better reflect reality.
9 years ago
Drew DeVault
aef3191022
Merge pull request #196 from sce/catch_empty_command
...
commands: Gracefully handle empty commands.
9 years ago
S. Christoffer Eliesen
e3837ba634
commands: Gracefully handle empty commands.
...
Before this patch sway would proceed into find_handler which would cause
a crash trying to parse a NULL string.
This could be triggered via e.g. `i3-msg -s $(sway --get-socketpath)`.
9 years ago
Drew DeVault
83c23f274c
Merge pull request #195 from sce/get_socketpath
...
main: Implement --get-socketpath switch.
9 years ago
Drew DeVault
ee9b9414b9
Merge pull request #194 from sce/ignore_no_startup_id
...
Ignore exec switch "--no-startup-id".
9 years ago
S. Christoffer Eliesen
3be11a08e6
main: Implement --get-socketpath switch.
9 years ago
S. Christoffer Eliesen
71ebe8c36b
commands: Catch empty exec with --no-startup-id cases.
9 years ago
S. Christoffer Eliesen
71bcee4f96
commands: Ignore exec switch "--no-startup-id".
...
When using an i3 config verbatim in sway this switch to exec or
exec_always might appear.
Before this patch the switch would be passed to /bin/sh, causing
an error, and the command would not be run.
9 years ago
Drew DeVault
16e904634c
Merge pull request #193 from sce/multi_user
...
Multi user
9 years ago
S. Christoffer Eliesen
783290e81a
sway/ipc: Use sway_abort instead of returning NULL.
9 years ago
S. Christoffer Eliesen
7cb0732030
sway/ipc: ipc_user_sockaddr: Use sway_assert instead of assert.
9 years ago
S. Christoffer Eliesen
382b4e425a
sway/ipc: Fix whitespace.
9 years ago
S. Christoffer Eliesen
26beb66eb5
sway/ipc: Free ipc_sockaddr upon termination.
9 years ago
S. Christoffer Eliesen
f94f8fde7e
sway/ipc: Support multiple users.
9 years ago
S. Christoffer Eliesen
ae93c6e6fe
sway/ipc: Dynamically assign ipc_sockaddr.
9 years ago
Drew DeVault
219c4848a7
Merge pull request #192 from sleep-walker/master
...
tell where openSUSE packages lives as well
9 years ago
Tomáš Čech
3d89571cf9
tell where openSUSE packages lives as well
9 years ago
Drew DeVault
fe54bf0af0
Merge pull request #191 from zetok/readme
...
README.md: Add link to unofficial ebuild for Gentoo
9 years ago
Zetok Zalbavar
878ac3d7f6
README.md: Add link to unofficial ebuild for Gentoo
9 years ago
Drew DeVault
73af58152b
Merge pull request #190 from taiyu-len/master
...
#187 , let init handle child processes
9 years ago
taiyu
18f4905e62
#187 , let init handle child processes
9 years ago
Drew DeVault
d2680ac8fe
Merge pull request #189 from SirCmpwn/revert-188-master
...
Revert "#187 cleanup zombies properly"
9 years ago
Drew DeVault
5bcecbb751
Revert "#187 cleanup zombies properly"
9 years ago
Drew DeVault
05c86f7f99
Merge pull request #188 from taiyu-len/master
...
#187 cleanup zombies properly
9 years ago
taiyu
5539fd89be
#187 cleanup zombies properly using default
9 years ago
Drew DeVault
3ca1fa7844
Merge pull request #185 from sleep-walker/master
...
Use location of XKBcommon headers, don't expect build in source direc…
9 years ago
Tomáš Čech
c57499d29c
Use location of XKBcommon headers, don't expect build in source directory
9 years ago
taiyu
c963aa7ced
return after disconnect ipc client and minor checks
9 years ago
Drew DeVault
fe3b85d65f
Merge pull request #181 from taiyu-len/master
...
multi command keybinds
9 years ago
taiyu
4944996170
Merge branch 'master' of https://github.com/taiyu-len/sway
...
merge
9 years ago
taiyu
6c33f8122a
#184
9 years ago
Drew DeVault
d7f8bbd353
Merge pull request #183 from mikkeloscar/wlc-dep
...
Add missing wlc dependency
9 years ago
Mikkel Oscar Lyderik
10d5ea0d87
Add missing wlc dependency
9 years ago
taiyu
72aaffcf5b
fix config search paths
9 years ago
taiyu
9fd2d635a1
container_move check
9 years ago
taiyu
7672886cb5
dont log empty config lines
9 years ago