aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
2019-11-17Add note about backends to output max_render_timeIvan Molodetskikh-0/+6
2019-11-17output: check wlr_output in repaint handlerIvan Molodetskikh-0/+4
It's possible for the output to be disconnected in just the right moment for wlr_output to be NULL in the repaint handler, causing a crash. This check fixes that crash.
2019-11-17Add max_render_time to view JSONIvan Molodetskikh-0/+2
2019-11-17Add max_render_time to output JSONIvan Molodetskikh-2/+8
2019-11-17view: add max_render_timeIvan Molodetskikh-18/+125
2019-11-17Add sway_surfaceIvan Molodetskikh-0/+43
For extending wlr_surface with additional things.
2019-11-17output: add max_render_timeIvan Molodetskikh-22/+166
2019-11-17Add -Wno-missing-bracesSimon Ser-0/+1
-Wmissing-braces makes it annoying to zero-initialize structs with = {0} when the first field is a struct. See for instance [1]. [1]: https://builds.sr.ht/~sircmpwn/job/110425
2019-11-17grimshot: fix branching on command exit statusManuel Mendez-4/+2
The previous behavior was incorrect because `if` was checking the return status of the `[` command which was never going to be an error. `[` seems to only return an error if no args are provided. This was basically a useless use of `[` anyway since it was just meant as a straight interpretation of command exit, something that `if` can do itself. Compare: ```sh [ ]; echo ?=$? [ /bin/false ]; echo ?=$? if [ /bin/false ]; then echo this is the unintended bug; fi if /bin/false; then echo this will not be printed; fi ```
2019-11-17Use an enum instead of a marker string for map_to_Tadeo Kondrak-39/+44
2019-11-17Implement input map_to_region commandTadeo Kondrak-2/+97
2019-11-16xwayland: get_constraints using size hintsRouven Czerwinski-0/+12
Previously, Xwayland windows did not have size_constraints implemented, resulting in the window being resizable. This implements the constraints through the X11 size hints supplied by the window itself.
2019-11-08seatop_default: handle focus for unmanaged xwayland windows lastRonan Pigott-15/+16
Fixes #4707
2019-11-05Use wlr_output_preferred_mode instead of the last modeSimon Ser-7/+5
Instead of relying on the order of modes, use wlr_output_preferred_mode to get the preferred mode.
2019-11-05Fix segfault in set_modeSimon Ser-1/+3
best is NULL prior to being assigned to a mode. Closes: https://github.com/swaywm/sway/issues/4705 Fixes: f33dcd4c604f ("Prefer higher refresh rate default modes")
2019-11-05Prefer higher refresh rate default modesRonan Pigott-1/+1
2019-11-04smart_borders: separate smartness from edge typesRonan Pigott-19/+24
2019-11-04Add --custom to `output mode` commandSimon Ser-6/+25
This forces to set the mode as a custom mode.
2019-11-04seatop_default: handle focus for xwayland_unmanaged viewsRonan Pigott-0/+18
2019-11-04seatop_move_floating: make container respect pointer constraintRonan Pigott-2/+7
2019-11-04focus: do nothing on focus prev|next for workspacesRonan Pigott-1/+13
2019-11-01Rename symbol set_cloexec to sway_set_cloexec, remove duplicates.Sheena Artrip-23/+11
set_cloexec is defined by both sway and wlroots (and who-knows-else), so rename the sway one for supporting static linkage. We also remove the duplicate version of this in client/. Fixes: https://github.com/swaywm/sway/issues/4677
2019-11-01focus: add a NULL check in `focus <direction>`lbonn-0/+3
container is checked for NULL in other conditions earlier, it's not obvious that it can't be undefined here.
2019-11-01Fix potential NULL reference on cleanuplbonn-2/+4
If allocation of bindings failed. Found with clang-tidy
2019-11-01Fix various memory leakslbonn-4/+11
Found with clang-tidy
2019-11-01seat: simplify a strduplbonn-4/+1
2019-10-31Skip line continuation when it is a commentRobert Günzler-1/+1
Currently commented lines ending in the backslash character will be concatenated with the following line. ``` # with this comment \ exec swaynag -m 'will not run' ``` This change modifies `getline_with_cont` to stop reading when the initial character is a '#'.
2019-10-27Fix presentation feedback when scanning out fullscreen viewSimon Ser-0/+2
Closes: https://github.com/swaywm/sway/issues/4663
2019-10-27Handle layer changes for layer shell surfacesSimon Ser-1/+12
Closes: https://github.com/swaywm/sway/issues/4644 References: https://github.com/emersion/rootston/commit/1982106c9b0fbd48ee9fe20e013524125f6ca3cf
2019-10-27criteria: make literal comparison for __focused__ valuesRonan Pigott-171/+205
2019-10-27focus: support focus prev|next [sibling]Ronan Pigott-8/+58
2019-10-27Fix segfault in wlr_output_manager_v1_set_configurationSimon Ser-0/+5
Calling wlr_output_manager_v1_set_configuration with an enabled output and a NULL mode is incorrect if the output doesn't support modes. When DPMS'ing an output, wlr_output_enable(output, false) is called. This de-allocates the CRTC and sets wlr_output.current_mode to NULL. Because we mark DPMS'ed outputs as enabled, we also need to provide a correct output mode. Add a field to sway_output to hold the current mode. Closes: https://github.com/swaywm/wlroots/issues/1867
2019-10-27Fix apply_output_config return value when enabling outputSimon Ser-7/+8
apply_output_config would call output_enable and always return true, even if the output couldn't be enabled.
2019-10-23Fix tiled containers resize with mouseKirill Chibisov-1/+1
Fixes regression introduced in 2c1a11016ccb7646a74de51eff003c18e5aa7902
2019-10-23swaybar: fix typo in the loop over pixmapsKonstantin Pospelov-1/+1
Fixes #4665.
2019-10-21swaybar: do not retry search for tray iconsKonstantin Pospelov-52/+62
In case a tray icon cannot be found or does not have a desirable size, swaybar retries the search again and again, which increases load on disk and CPU. This commit solves it by storing target_size for each icon, so that swaybar does not search for an icon of some size if it already tried to. Fixes #3789.
2019-10-21Fix refresh rate scale of outputDanilo Spinella-3/+3
When applying config, value mode->refresh is mHz; convert it to Hz before assigning it to the temporary output config. oc->refresh_rate will be converted back to mHz in set_mode function. Fix debug log printing GHz instead of Hz.
2019-10-17focus: support focus_wrapping workspacelbonn-4/+10
Following i3 support: https://github.com/i3/i3/pull/3407
2019-10-17xwayland.c handle_map(): NULL out xsurface->data() to prevent crashing.A. M. Joseph-0/+1
When changing a surface from managed to unmanaged in handle_map(), the call to handle_destroy(.., view) causes the sway_xwayland_view pointed to by the untyped wlr_xwayland_surface.data field to become invalid garbage, yet the untyped wlr_xwayland_surface.data continues to point at it. In particular: view_get_*(view_from_wlr_surface(..)), even with appropriate NULL checking, will crash sway when this codepath is exercised (reliable test case: drop-down menus in Google Earth).
2019-10-16Updates per wlroots layer shell changesDrew DeVault-4/+7
2019-10-16Grimshot: a helper for screenshots within swayLauri-0/+113
Usage: grimshot copy|save win|screen|area [FILE] Troubleshoot: grimshot check Requirements: - `grim`: screenshot utility for wayland - `slurp`: to select an area - `swaymsg`: to read properties of current window - `wl-copy`: clipboard utility - `jq`: json uliity to parse swaymsg output - `notify-send`: to show notifications Those are needed to be installed, if unsure, run `grimshot check` Examples: `grimshot copy win` - to copy current window `grimshot save area` - to select area and save it to default file (Pictures/Grimshot-$datetime.png) `grimshot save screen ~/screenshot.png` - to save screenshot under ~/screenshot.png `grimshot` - usage `grimshot check` - verify if tools are installed
2019-10-16build: always use the project versionSimon Ser-5/+9
Don't use the latest tag, always use the project version for the version string. Because of version branches, getting the version from Git can be unreliable. Closes: https://github.com/swaywm/sway/issues/4631
2019-10-16sway(5): move workspace_layout to config onlyRouven Czerwinski-3/+3
According to the source files, workspace_layout is a configuration only command, move it to the correct section within the man page.
2019-10-12Update version to 1.2Drew DeVault-1/+1
2019-10-11Update .github/FUNDING.ymlDrew DeVault-0/+1
2019-10-09sway(5): Highlight valid values in the description of tiling_dragWieland Hoffmann-1/+1
2019-10-09sway(5): Add a missing verbWieland Hoffmann-1/+1
2019-10-08build: bump wlroots version to 0.8.1Simon Ser-1/+1
2019-10-02build: remove rootston from wlroots subprojectTadeo Kondrak-1/+1
Fixes an invalid option warning from Meson.
2019-10-02Fix syntax in examples in sway-output(5)Arkadiusz Hiler-2/+2
Some examples use comma to separate x and y for setting the output position which is wrong. Let's change it to spaces, as correctly demonstrated in the `output <name> position|pos <X> <Y>` section.