aboutsummaryrefslogtreecommitdiffstats
path: root/sway/ipc-json.c
Commit message (Collapse)AuthorAge
* Fetch input device vendor/product from libinputLibravatar Simon Ser2024-03-07
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4582
* ipc: add `scratchpad_state` property to GET_TREELibravatar llyyr2024-02-29
| | | | See previous commit. This restores ipc parity with i3.
* ipc: add `floating` property to GET_TREELibravatar llyyr2024-02-29
| | | | | | i3 has had this property for over a decade but it wasn't documented until a couple of years ago, so it was likely missed when developing sway. Add the property to get us closer to ipc parity with i3.
* input/libinput: add scroll_button_lock methodLibravatar Cezary Drożak2023-06-16
| | | | | | | Closes https://github.com/swaywm/sway/issues/6987 Co-authored-by: JJGadgets <git@jjgadgets.tech> Co-authored-by: DeltaWhy <mike5713@gmail.com>
* ipc: add LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM entryLibravatar Simon Ser2023-03-27
| | | | | | | | | | This was introduced in the last libinput release. Fixes the following error: ../sway/ipc-json.c:928:17: error: enumeration value 'LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM' not handled in switch [-Werror=switch] 928 | switch (libinput_device_config_accel_get_profile(device)) { | ^~~~~~
* Correct window_rect.y with hide_edge_bordersLibravatar Łukasz Adamczak2023-02-10
| | | | | | | | | | | With `hide_edge_borders both` (or at least `vertical`), `window_rect.y` will equal `border_thickness` for SOME windows, but it will be 0 for windows adjacent to top screen edge. Therefore setting it to `border_thickness` is not sufficient. This commit changes it to the actual y offset of content into the container.
* Make libinput backend optionalLibravatar Simon Ser2022-11-28
|
* ipc: add view content typeLibravatar Simon Ser2022-11-15
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3599
* Support libinput's 1.21 new dwtp optionLibravatar pudiva chip líquida2022-10-30
| | | | | | | | | Support the new dwtp (disable while trackpointing) option introduced in libinput 1.21, allowing users to control whether the trackpoint (like those in Thinkpads, but not only) should be disabled while using the keyboard/touchpad. See: https://gitlab.freedesktop.org/libinput/libinput/-/issues/731
* ipc: expose mode picture aspect ratioLibravatar Simon Ser2022-10-03
|
* sway: add non-desktop outputs to json when running `swaymsg -t get_outputs`Libravatar Alex Maese2022-09-19
|
* ipc: drop WLR_OUTPUT_ADAPTIVE_SYNC_UNKNOWN caseLibravatar Simon Ser2022-08-30
| | | | This has been removed from wlroots.
* ipc: make get_deco_rect check config->hide_lone_tabLibravatar Baltazár Radics2022-07-26
| | | | | | Without this, the `IPC_GET_TREE` ipc call would return false information about the container's `deco_rect` and `rect` properties if `hide_edge_borders --i3` was in effect.
* ipc: add "power" to output replyLibravatar Simon Ser2022-07-04
|
* Remove access to wlr_input_device unionLibravatar Simon Ser2022-06-22
| | | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3626 Closes: https://github.com/swaywm/sway/issues/7077
* Handle NULL output make/model/serialLibravatar Simon Ser2022-05-26
|
* De-duplicate IPC output descriptionsLibravatar Simon Ser2022-05-26
|
* [IPC] Add repeat delay/rate info to keyboardLibravatar Seth Barberee2022-01-04
| | | | | Closes #6735 wlroots already has the info in the struct so let's access it and print it out.
* Update wlr_box includesLibravatar Simon Ser2021-07-07
| | | | | | Update for the breaking change in [1]. [1]: https://github.com/swaywm/wlroots/pull/3011
* config: Fix swaybar pango_markup inconsistencyLibravatar Daniel Otero2021-06-03
| | | | | | Until now, swaybar did not have pango markup enabled by default, even if the sway config had it on. This patch aims to mimic the i3 behavior, but maintaining the functionality of the "pango_markup" sway config command.
* Added scroll_factor input variable to ipc outputLibravatar Erik Reider2021-05-05
|
* container: Move pending state to state structLibravatar Kenny Levinsen2021-02-16
| | | | | | | | | Pending state is currently inlined directly in the container struct, while the current state is in a state struct. A side-effect of this is that it is not immediately obvious that pending double-buffered state is accessed, nor is it obvious what state is double-buffered. Instead, use the state struct for both current and pending.
* Align ordering of core node properties with i3Libravatar Jan Palus2021-02-15
| | | | | | | | | | Try to better mimic JSON node structure produced by i3 which might be relied on by already existing tools. In particular having "type" right after "id" is quite handy for streaming high-performance JSON parsers such as simdjson (which are handy for maintaining responsiveness on resource constrained systems). refer https://github.com/i3/i3/blob/ab2a22a78b25ad12fed2c177a34c44950795cf33/src/ipc.c#L338
* Add support for workspace_min_width bar option.Libravatar Tarmack2020-10-11
|
* Fix incorrect format specifiersLibravatar Antonin Décimo2020-07-30
|
* i3-compat: add GET_BINDING_STATE IPC commandLibravatar Jason Nader2020-06-14
|
* Add views idle inhibition status in get_tree outputLibravatar Damien Tardy-Panis2020-05-29
| | | | Fixes #5286
* ipc: invert output transformation when necessaryLibravatar Tudor Brindus2020-05-28
| | | | | | | | After swaywm/wlroots#2023, #4996 inverted configuration transformations. For consistency, we should undo (double-apply) the inversion when communicating via IPC. Closes #5356.
* ipc: show marks of containers without view in treeLibravatar lbonn2020-05-22
|
* Add each view's shell to JSON descriptionLibravatar Thomas Hebb2020-04-27
| | | | | | | This is a criteria you can use to select windows since commit 484cc189e909 ("Add shell criteria token"), but there's no way to query it for an existing window. This exposes its value in the output of `swaymsg -t get_tree`.
* Limit workspace numbers within 0..INT32_MAXLibravatar Jason Nader2020-03-12
| | | | See https://github.com/i3/i3/commit/83c7aff089a6728b6e522d934d656a8e09463112
* ipc: add missing required propertiesLibravatar Ian Fan2020-03-10
|
* Add adaptive_sync_status to output IPC replyLibravatar Simon Ser2020-03-07
|
* i3compat: add `window_type` to IPC responseLibravatar Jason Nader2020-02-17
| | | | i3 added these in i3/i3#3797
* i3compat: add `window_type` to IPC responseLibravatar Jason Nader2020-02-17
| | | | i3 added these in i3/i3#3797
* ipc-json: Remove unnecessary dereferenceLibravatar Ronan Pigott2020-01-16
|
* add scale_filter output config optionLibravatar Ronan Pigott2019-11-29
|
* Add max_render_time to view JSONLibravatar Ivan Molodetskikh2019-11-17
|
* Add max_render_time to output JSONLibravatar Ivan Molodetskikh2019-11-17
|
* calibration_matrix: add the current matrix to the IPC description for ↵Libravatar Sergei Dolgov2019-07-05
| | | | libinput devices
* ipc: add xkb_layout_names and xkb_active_layout_indexLibravatar Simon Ser2019-06-09
| | | | | | These can be useful to implement per-window layouts as a script. See https://github.com/swaywm/sway/issues/2361
* Provide current DPMS state in GET_OUTPUTSLibravatar Josef Gajdusek2019-05-28
|
* Send disabled output available modes on IPC get_outputsLibravatar Ranieri Althoff2019-04-16
| | | | | | - Also fix missing trailing newline on pretty print Signed-off-by: Ranieri Althoff <1993083+ranisalt@users.noreply.github.com>
* Add heuristics to differentiate touchpadsLibravatar Benjamin Cheng2019-04-14
| | | | | | | Use libinput_device_config_tap_get_finger_count to determine whether a pointer is a touchpad. swaymsg is also updated to reflect the new touchpad type.
* Support WLR_INPUT_DEVICE_SWITCH in swayLibravatar Ryan Walklin2019-03-19
| | | | | | | | | | | | | | | | | | | | | This commit adds support for laptop lid and tablet mode switches as provided by evdev/libinput and handled by wlroots. Adds a new bindswitch command with syntax: bindswitch <switch>:<state> <command> Where <switch> is one of: tablet for WLR_SWITCH_TYPE_TABLET_MODE lid for WLR_SWITCH_TYPE_LID <state> is one of: on for WLR_SWITCH_STATE_ON off for WLR_SWITCH_STATE_OFF toggle for WLR_SWITCH_STATE_TOGGLE (Note that WLR_SWITCH_STATE_TOGGLE doesn't map to libinput and will trigger at both on and off events)
* get_deco_rect: fix floaters on tabbed/stacked wsLibravatar Brian Ashworth2019-03-11
| | | | | | | | | | | This fixes the decoration rects for floating containers on a workspace that is either tabbed or stacked. Without this, the floater would incorrectly try to calculate where it's tab or stack decorations were on the workspace. This would cause a SIGFPE (due to a divide-by-zero) when the floater was on a tabbed workspace without any tiling children. Furthermore, the floater does not care what the workspace's layout is and should just use the location relative to the workspace. This should have no effect on children of a floating container.
* Fix crash when moving window to scratchpadLibravatar minus2019-03-09
|
* ipc: describe libinput device configurationLibravatar Brian Ashworth2019-03-07
| | | | | | | | This adds the device configurations to the ipc response for libinput devices. Only supported configuration options for the device will be added. This also moves `libinput_send_events` inside a new `libinput` object that contains the rest of the configuration options. sway-ipc(7) has been updated to reflect the changes and document the new additions.
* ipc: fix fullscreen deco_rectLibravatar Brian Ashworth2019-03-06
| | | | | | This fixes the deco_rect reported by the ipc for fullscreen containers to be all zeroes. Children of the fullscreen container should still have their decorations reported correctly
* ipc: fix rect for stacked childrenLibravatar Brian Ashworth2019-03-06
| | | | | This now takes all titlebars for stacked children into account for the ipc property `rect`