Drew DeVault
9aed9d9359
UnGNUify the codebase
2017-03-10 23:41:24 -05:00
Drew DeVault
126ce571da
Read configs from /etc/sway/security.d/*
2017-02-20 07:51:31 -05:00
Drew DeVault
1980a08358
Enforce new IPC policies
2017-02-20 06:33:04 -05:00
Drew DeVault
b10721b89e
Add initial support code for new IPC security
2017-02-20 06:11:56 -05:00
Drew DeVault
d859f825d3
Fix build error
2016-12-15 19:01:41 -05:00
Drew DeVault
31b002b6d5
Handle IPC server allocation failures
2016-12-15 19:01:41 -05:00
Drew DeVault
8cef81d6f2
Handle some more memory allocation failures
2016-12-15 19:01:41 -05:00
Greg V
da26d69cb1
Fix build on FreeBSD
...
- Make sure CMake always finds absolute paths for Cairo, Pango and GdkPixbuf
- Add forgotten json-c include path to swaymsg/CMakeLists.txt
- Disable -Werror because of assert warnings
- Add correct /proc/pid/file path for FreeBSD
- Use libepoll-shim on FreeBSD
- Only use Linux capabilities on, well, Linux
2016-12-09 19:32:07 +03:00
Drew DeVault
d93e53fd4b
Use return value of write
2016-12-06 09:10:16 -05:00
Drew DeVault
d353da248b
Add ipc connection feature policy controls
2016-12-02 18:09:19 -05:00
Drew DeVault
62dad7148f
Enforce IPC security policy
2016-12-02 17:55:03 -05:00
Drew DeVault
e9e1a6a409
Add IPC policy to config
...
Also reduces enum abuse, cc @minus7
2016-12-02 16:08:45 -05:00
Drew DeVault
0a1b211e09
Drop -Denable-binding-event
2016-12-02 16:01:33 -05:00
Drew DeVault
39cf9a82f7
Enforce command policies
2016-12-02 08:17:45 -05:00
Zandr Martin
0516dba3f6
implement "focused container" feature for swaygrab
2016-09-18 16:41:08 -05:00
Zandr Martin
e75217cfb1
fix get_workspaces json reply
2016-09-17 22:00:11 -05:00
Drew DeVault
416417a54c
Reorganize includes
2016-09-01 08:18:37 -04:00
Tony Crisci
4ab35df157
ipc: log sending of events
...
Log the sending of the events in the debug log. This makes ipc server events
easier to verify.
2016-08-04 21:48:20 -04:00
Tony Crisci
e1e15bb43e
ipc: recursive workspace containers in event
...
Recursively describe workspace containers in the workspace event. This is for
compatability with i3 and i3ipc libraries.
2016-08-04 21:26:39 -04:00
Mykyta Holubakha
cf8ef2aea2
Initialize client's subscribed events
2016-07-28 13:38:02 +00:00
Mykyta Holubakha
f52daa26c9
Unite describe_view and describe_window
2016-07-21 21:51:20 +03:00
Mykyta Holubakha
e5c7b019ff
Fix dispatching and assigning events
2016-07-21 21:51:20 +03:00
Mykyta Holubakha
2029fef6b8
More progress on window events
2016-07-21 21:51:20 +03:00
Mykyta Holubakha
976e48d79f
Initial work on window events
2016-07-21 21:51:20 +03:00
Zandr Martin
15a324b0d3
implement get_tree
command
2016-07-04 13:34:44 -05:00
Zandr Martin
1b4d61662c
fix swaybar problem in 08bef67
2016-05-31 09:25:54 -05:00
Eric Engestrom
08bef67f85
sway: refactor ipc_client_handle_command()
...
This fixes a few mem leaks, as well as remove a false-positive error msg
in IPC_GET_BAR_CONFIG
2016-05-31 00:44:07 +01:00
Eric Engestrom
9d7d73df7f
sway: fix IPC resource leak
2016-05-31 00:40:15 +01:00
Eric Engestrom
3d6a3413b8
sway: always terminate ipc path
2016-05-02 11:26:27 +01:00
Mykyta Holubakha
0f1cfdec61
Renamed to pango_markup
2016-04-24 20:35:21 +03:00
Mykyta Holubakha
2e6c43e62b
Added plaintext_markup to swaybar IPC
2016-04-24 20:14:02 +03:00
Mikkel Oscar Lyderik
f39034a55f
Use correct format string for x86_64 and i686
...
Fix #587
2016-04-17 16:51:33 +02:00
Mikkel Oscar Lyderik
212c6a18a2
Add outputs to bar_config ipc response
2016-02-27 22:12:35 +01:00
Mikkel Oscar Lyderik
6f7cbf2eac
Replace deprecated function wlc_output_get_pixels.
...
This makes IPC GET_PIXELS use the new `wlc_pixels_read` call instead of
the deprecated `wlc_output_get_pixels`.
The old version worked by passing a callback function to wlc which would
grab the pixels and send them to the IPC client.
The new version works by maintaining a list of clients who have
requested the pixels of some output and then grap and send the pixels in
the output_post_render hook of the `wlc_interface`.
2016-02-08 12:39:07 +01:00
crondog
0ee5547406
font: Allow adding font to the config. In prep for border titles
...
v2: Give default font and make bar use it if no bar font
2016-01-27 20:53:31 +11:00
Cole Mickens
28081b7689
libinput
2016-01-19 06:51:36 -08:00
Mikkel Oscar Lyderik
15621ea8ff
Add backwards compatability for binding event
2016-01-09 20:56:42 +01:00
Mikkel Oscar Lyderik
e3ddcaabc4
Add bindcode to binding events.
2016-01-09 20:31:18 +01:00
Mikkel Oscar Lyderik
15cbc53a77
Make IPC binding event support a compile time opt.
2016-01-08 15:03:25 +01:00
Mikkel Oscar Lyderik
6392abe35b
Implement IPC binding event (keyboard)
...
This implements the IPC binding event for keyboard bindings. It is
slightly different from the i3 implementation [1] since sway supports
more than one non-modifier key in a binding. Thus the json interface has
been changed from:
{
...
"symbol": "t",
...
}
to:
{
...
"symbols": [ "t" ],
...
}
[1] http://i3wm.org/docs/ipc.html#_binding_event
2016-01-08 03:03:55 +01:00
Mikkel Oscar Lyderik
a8402035e9
Add modifier key to bar_config json
2016-01-05 18:36:26 +01:00
Mikkel Oscar Lyderik
95e0f44c73
Move modifier name table to common/util.c
...
Lookup of modifier names is required in several places, thus it makes
sense to move it to a general place.
2016-01-05 18:36:24 +01:00
Mikkel Oscar Lyderik
c20c63b677
Send IPC modifier event on bar_modifier up/down
...
Detects when a bar modifier key is pressed/released and sends a modifier
IPC event to any listeners (usually swaybars).
This way a swaybar can listen on the modifier event and hide/show the
bar accordingly (not implemented yet)
The modifier event looks like this:
{
"change": "pressed", // or released
"modifier": "Mod4"
}
2016-01-05 02:25:56 +01:00
Mikkel Oscar Lyderik
aa2f754c64
swaybar: Implement binding_mode_indicator
2016-01-03 22:16:36 +01:00
Mikkel Oscar Lyderik
19833fbc8b
Add IPC event types
...
Adds custom IPC_EVENT_* types
2016-01-03 20:37:10 +01:00
Mikkel Oscar Lyderik
50b04884b6
Trigger ipc_event_workspace in all cases
...
This makes sure that the workspace IPC event is triggered when needed.
Fixes #382 while making sure that the IPC event is only triggered once.
2015-12-21 23:07:52 +01:00
Drew DeVault
442a54c38b
Merge pull request #390 from mikkeloscar/workspace-ipc-event
...
Don't skip all clients on ipc_workspace_event.
2015-12-21 09:49:55 -05:00
Mikkel Oscar Lyderik
42e5b4b032
Don't skip all clients on ipc_workspace_event.
...
Only clients not subcriped to the workspace event should be skipped.
2015-12-21 15:40:01 +01:00
Mikkel Oscar Lyderik
66c66c7304
Implement barconfig_update
IPC event
2015-12-21 15:28:34 +01:00
Mikkel Oscar Lyderik
2fd7dd64ec
Implement bar option: separator_symbol
2015-12-16 13:01:11 +01:00