aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
...
* Check xdg_surface's role before using its toplevelLibravatar mwenzkowski2019-01-28
| | | | | | | | Don't access xdg_surface->toplevel if xdg_surface->role is equal to WLR_XDG_SURFACE_ROLE_NONE, since this could lead to crash. The same checks are added for xdg_surface_v6. Fixes #3311
* Introduce container_is_scratchpad_hiddenLibravatar Ryan Dwyer2019-01-28
| | | | | | | | | | | | Just a convenience function that improves readability of the code. Other things worth noting: * container_get_siblings and container_sibling_index no longer use the const keyword * container_handle_fullscreen_reparent is only ever called after attaching the container to a workspace, so its con->workspace check has been changed to an assertion
* Add note about required scdoc version to README.Libravatar Connor E2019-01-28
|
* Center surface inside container when it's too smallLibravatar Ryan Dwyer2019-01-28
| | | | | | | | | | | | | | | | | | | | | | | | | The goal here is to center fullscreen views when they are both too small for the output and refuse to resize to the output's dimensions. It has the side effect of also centering the view when it's too small for its container. Example clients that have this behaviour are emersion's hello-wayland and weston. It works by introducing surface_{x,y,width,height} properties to the container struct. The x and y represent layout-local coordinates where the surface will be rendered. The width and height are only used to track the surface's previous dimensions so we can detect when the client has resized it and recenter and apply damage accordingly. The new surface properties are calculated when a transaction is applied, as well as when a view resizes itself unexpectedly. The latter is done in view_update_size. This function was previously restricted to views which are floating, but can now be called for any views. For views which refuse to resize *smaller* than a particular size, such as gnome-calculator, the surface is still anchored to the top left as per the current behaviour.
* Merge pull request #3423 from RyanDwyer/fullscreen-globalLibravatar Drew DeVault2019-01-27
|\ | | | | Implement fullscreen global
| * Implement fullscreen globalLibravatar Ryan Dwyer2019-01-25
| |
* | Merge pull request #3519 from emersion/pointer-frameLibravatar Drew DeVault2019-01-27
|\ \ | | | | | | Update for swaywm/wlroots#1503
| * | Update for swaywm/wlroots#1503Libravatar emersion2019-01-27
| | |
* | | Remove unnecessary underscores in man pagesLibravatar Drew DeVault2019-01-27
|/ /
* | Merge pull request #3509 from ianyfan/log-errnoLibravatar Drew DeVault2019-01-24
|\ \ | |/ |/| Use sway_log_errno instead of strerror
| * Use sway_log_errno instead of strerrorLibravatar Ian Fan2019-01-24
|/
* Update for swaywm/wlroots#1402Libravatar emersion2019-01-24
|
* Make json-c include respect pkg-config --cflagsLibravatar Jan Beich2019-01-23
| | | | | 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.
* Merge pull request #3504 from unraised/unraised-build-fixLibravatar Drew DeVault2019-01-23
|\ | | | | Fix build failure in config.c
| * Fix build failure in config.cLibravatar unraised2019-01-23
|/
* Merge pull request #3500 from progandy/validate_pixmapsLibravatar Drew DeVault2019-01-23
|\ | | | | swaybar: fix crash with some tray icon pixmaps
| * swaybar: fix crash with some tray icon pixmapsLibravatar progandy2019-01-23
| | | | | | | | | | | | Discard pixmaps for icons where width and height are 0 or not equal. Fixes #3487
* | Merge pull request #3502 from lukaslihotzki/masterLibravatar Drew DeVault2019-01-23
|\ \ | | | | | | Fix tray icon updates
| * | Fix tray icon updatesLibravatar Lukas Lihotzki2019-01-23
|/ / | | | | | | | | Apparently, IconThemePath needs to be reread on NewIcon signal. This fixes tray icon updates in electron apps with libappindicator-gtk3.
* / swaybar: fix command malloc in workspace commandLibravatar Brian Ashworth2019-01-22
|/ | | | | | | 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.
* background-image.c: remove stdbool headerLibravatar Ian Fan2019-01-22
|
* swaybar: fix workspace commandLibravatar Ian Fan2019-01-22
| | | | | Escape quotes and backslashes, allowing switching to workspace names like "1" (including quotes) and \
* Merge pull request #3496 from mstoeckl/fix-sanLibravatar Drew DeVault2019-01-22
|\ | | | | Fix dead stores found by scan-build
| * Fix dead stores found by scan-buildLibravatar M Stoeckl2019-01-22
|/ | | | | | | | 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.
* Merge pull request #3494 from ianyfan/commandsLibravatar Drew DeVault2019-01-22
|\ | | | | i3 command behaviour compatibility fixes
| * commands: allow setting floating on scratchpad containersLibravatar Ian Fan2019-01-22
| |
| * commands: allow tiled containers to be stickiedLibravatar Ian Fan2019-01-22
| | | | | | | | | | This also stops stickied containers from losing its sticky status when it is tiled, allowing it to be immediately stickied when floated again.
* | root_scratchpad_remove_container: do not showLibravatar Brian Ashworth2019-01-22
| | | | | | | | | | | | | | 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`.
* | util.c: remove numlen functionLibravatar Ian Fan2019-01-22
|/ | | | Its uses have been replaced by snprintf, which is more in line with its usage.
* Remove assumption that noop output will be called NOOP-1Libravatar Ryan Dwyer2019-01-22
|
* Don't allow noop output to be configuredLibravatar Ryan Dwyer2019-01-22
|
* Hide noop output in IPCLibravatar Ryan Dwyer2019-01-22
|
* Prevent noop output from being enabledLibravatar Ryan Dwyer2019-01-22
|
* Use noop output when there's no outputs connectedLibravatar Ryan Dwyer2019-01-22
| | | | | Instead of having NULL workspace->output pointers, use a noop output. This should be safer.
* seat_create: set initial focus for added seatsLibravatar Brian Ashworth2019-01-22
| | | | | | 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.
* swaynag: Small graphical fix, add offset of +1 to X/Y.Libravatar Connor E2019-01-22
|
* Merge pull request #3485 from mstoeckl/minimize-depsLibravatar Brian Ashworth2019-01-22
|\ | | | | Remove wlroots dependency for sway(bar|bg|msg|nag)
| * Removed unused wlroots dependency for sway(bg|bar|msg|nag)Libravatar M Stoeckl2019-01-21
| | | | | | | | Also remove direct libm dependency where unused.
| * Fix edge case bug in numlen, dropping use of math.h functionsLibravatar M Stoeckl2019-01-21
| | | | | | | | | | (Specifically, numlen when called with INT_MIN gave an incorrect result, because abs(INT_MIN) == INT_MIN < 0.)
| * Move sway-specific functions in common/util.c into sway/Libravatar M Stoeckl2019-01-21
|/ | | | | | 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 .
* swaybar: fix setting floating watcher slotsLibravatar Ian Fan2019-01-21
|
* Merge pull request #3480 from RedSoxFan/input-modes-improved-toggleLibravatar Drew DeVault2019-01-21
|\ | | | | input_cmd_events: allow toggle modes to be listed
| * input_cmd_events: allow toggle modes to be listedLibravatar Brian Ashworth2019-01-21
| | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #3482 from emersion/meson-systemd-versionLibravatar Drew DeVault2019-01-21
|\ \ | | | | | | meson: set minimum systemd version
| * | meson: set minimum systemd versionLibravatar emersion2019-01-21
| |/ | | | | | | sd_bus_slot_set_floating has been introduced in systemd 239.
* | Fix one remaining wlr_log callLibravatar emersion2019-01-21
| |
* | Replace wlr_log with sway_logLibravatar M Stoeckl2019-01-21
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Log libinput_config_status errorsLibravatar Brian Ashworth2019-01-21
|/ | | | | | 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. (#3473)Libravatar Connor Edwards2019-01-20
| | | | | | * Allocate minimum size necessary in pango text functions. * Handle malloc failure.
* Merge pull request #3468 from emersion/fix-output-gain-crtcLibravatar Drew DeVault2019-01-20
|\ | | | | Fix re-enabling outputs gaining a CRTC