| Commit message (Collapse) | Author | Age |
|\
| |
| | |
Update for swaywm/wlroots#1503
|
| | |
|
|/ |
|
|\
| |
| | |
Use sway_log_errno instead of strerror
|
|/ |
|
| |
|
|
|
|
|
| |
json-c.pc contains `Cflags: -I${includedir}/json-c`, so `<json-c/json.h>`
won't be found unless the parent directory is searched by default.
|
|\
| |
| | |
Fix build failure in config.c
|
|/ |
|
|\
| |
| | |
swaybar: fix crash with some tray icon pixmaps
|
| |
| |
| |
| |
| |
| | |
Discard pixmaps for icons where width and height are 0 or not equal.
Fixes #3487
|
|\ \
| | |
| | | |
Fix tray icon updates
|
|/ /
| |
| |
| |
| | |
Apparently, IconThemePath needs to be reread on NewIcon signal.
This fixes tray icon updates in electron apps with libappindicator-gtk3.
|
|/
|
|
|
|
|
| |
This fixes a typo on the malloc line in ipc_send_workspace_command. The
plus one to the size for the null-terminator was outside of the malloc
call, which was causing the incorrect pointer to be freed later in the
function.
|
| |
|
|
|
|
|
| |
Escape quotes and backslashes, allowing switching to workspace names
like "1" (including quotes) and \
|
|\
| |
| | |
Fix dead stores found by scan-build
|
|/
|
|
|
|
|
|
| |
In addition to removing unused code, two minor problems are fixed:
(1) `resize set` and `resize adjust` did not error when given
too many arguments.
(2) `orientation` was incorrectly overridden to be 'U' for
scroll events in the swaybar tray `handle_click` function.
|
|\
| |
| | |
i3 command behaviour compatibility fixes
|
| | |
|
| |
| |
| |
| |
| | |
This also stops stickied containers from losing its sticky status when
it is tiled, allowing it to be immediately stickied when floated again.
|
| |
| |
| |
| |
| |
| |
| | |
This removes the call to `root_scratchpad_show` from
`root_scratchpad_remove_container` and places it in the
`cmd_move_container`. This also moved the IPC `window::move` event to
`cmd_scratchpad`.
|
|/
|
|
| |
Its uses have been replaced by snprintf, which is more in line with its usage.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Instead of having NULL workspace->output pointers, use a noop output.
This should be safer.
|
|
|
|
|
|
| |
This sets the initial focus for all seats other than the first seat,
which gets it focus on launch. The ensures that all seats have something
focused.
|
| |
|
|\
| |
| | |
Remove wlroots dependency for sway(bar|bg|msg|nag)
|
| |
| |
| |
| | |
Also remove direct libm dependency where unused.
|
| |
| |
| |
| |
| | |
(Specifically, numlen when called with INT_MIN gave an incorrect
result, because abs(INT_MIN) == INT_MIN < 0.)
|
|/
|
|
|
|
| |
Modifier handling functions were moved into sway/input/keyboard.c;
opposite_direction for enum wlr_direction into sway/tree/output.c;
and get_parent_pid into sway/tree/root.c .
|
| |
|
|\
| |
| | |
input_cmd_events: allow toggle modes to be listed
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This extends `input <identifier> events toggle` to allow for an optional
list of modes to toggle through. If no event modes are listed, all
supported modes are cycled through (current behavior). If event modes
are listed, they will be cycled through, defaulting to the first mode
listed when the current mode is not in the list. This modes listed will
also not be checked to see if the device supports them and may fail.
|
|\ \
| | |
| | | |
meson: set minimum systemd version
|
| |/
| |
| |
| | |
sd_bus_slot_set_floating has been introduced in systemd 239.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit mostly duplicates the wlr_log functions, although
with a sway_* prefix. (This is very similar to PR #2009.)
However, the logging function no longer needs to be replaceable,
so sway_log_init's second argument is used to set the exit
callback for sway_abort.
wlr_log_init is still invoked in sway/main.c
This commit makes it easier to remove the wlroots dependency for
the helper programs swaymsg, swaybg, swaybar, and swaynag.
|
|/
|
|
|
|
| |
This add errors from calls to `libinput_device_config_*_set` to the
debug log. This may be useful when looking at issues related to input
devices and config settings not working.
|
|
|
|
|
|
| |
* Allocate minimum size necessary in pango text functions.
* Handle malloc failure.
|
|\
| |
| | |
Fix re-enabling outputs gaining a CRTC
|
| |
| |
| |
| |
| |
| | |
If output->configured is true, then the output has been modeset correctly and
we don't need to try again. If output->enabled is true, then we are in the
process of configuring the output and we shouldn't do anything.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously, the success of `getline` was tested by checking if the
buffer it allocates is nonempty and has a nonzero first byte. As
`getline` does not explicitly zero out its memory buffer, this may
fail (e.g., with AddressSanitizer). Instead, we check that at least one
character was returned on standard output.
Also, trailing newlines (if present) are now removed.
|
| |
| |
| |
| |
| | |
output_i was used in apply_output_config when swaybar used wl_output
index numbers instead of xdg-output names. This is no longer needed.
|
|/ |
|
| |
|
| |
|