aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
2021-10-29Add smart_gaps inverse_outer commandbR3iN-20/+44
Add a subcommand for `smart_gaps` that enables outer gaps only on workspaces with exactly one visible child. Also add documentation for `smart_gaps toggle`.
2021-10-26fix cursor input for layer-shell surfacesRasmus Moorats-19/+22
previously, fullscreen global containers would grab cursor input even if a shell-layer surface was on top of it related issue: https://github.com/swaywm/sway/issues/6501
2021-10-25refactor: use JSON_MAX_DEPTH everywhereJason Nader-4/+4
2021-10-22refactor: use sway_abort insteadSefa Eyeoglu-25/+27
2021-10-22fix: use sane value for json_tokener max_depthSefa Eyeoglu-2/+6
INT_MAX causes a NULL pointer if there is not enough memory available to fit (INT_MAX * sizeof(struct json_tokener_srec)).
2021-10-22fix: handle NULL from json_tokener_new_exSefa Eyeoglu-18/+28
if there is not enough memory to fit json_tokener and (depth * json_tokener_srec) in RAM, don't segfault.
2021-10-21view: add new container as a sibling of tiled viewsiikamiika-11/+23
If the focused container is floating by itself, create a new container in tiling mode as a sibling of the inactive focused container instead of creating it as a sibling of everything that is in tiling mode in that workspace. This is the i3 behavior.
2021-10-21commands/focus: focus view inside containersiikamiika-0/+5
seat_get_focus_inactive_floating and seat_get_focus_inactive_tiling do not always return a view, so get the previously focused view from the container with seat_get_focus_inactive_view. This is the i3 behavior.
2021-10-19xwayland: Clear wlr_xwayland_surface in handle_destroyDavid Rosca-0/+2
If the destroyed xwayland view is in transaction, it won't be destroyed immediately. wlr_xwayland_surface then becomes dangling pointer. Closes #6605 Closes #5884
2021-10-19Remove --my-next-gpu-wont-be-nvidiaSimon Ser-2/+1
Nvidia has historically been a bad actor in the open-source graphics ecosystem because they required a special EGLStreams code-path instead of exposing the de-facto standard GBM API. However, with their upcoming release they now support GBM as well. This is a push in the right direction for Nvidia, so there's no reason we should be more hostile to them than to any other proprietary driver. Let's remove the --my-next-gpu-wont-be-nvidia flag, and advise users to use --unsupported-gpu now. Note, proprietary Nvidia drivers are still unsupported by the Sway project (just like all other proprietary drivers).
2021-10-18swaymsg: fix misplaced return valueJason Nader-1/+1
2021-10-18swaymsg: be explicit about the json parser errorJason Nader-7/+8
2021-10-18swaymsg: use INT_MAX max JSON depth when parsing IPC responseJason Nader-2/+7
Same reasoning as fe11caeac946cecda491d592044a6b9519ef2035. Without this, swaymsg would fail with a cryptic error message when the JSON was nested too deep.
2021-10-17config.in: use swaynag -B instead of -bNihal Jere-1/+1
'-b' spawns a terminal, which is unnecessary for this use case
2021-10-17github: don't truncate debug logsSimon Ser-0/+1
This happens a lot, the latest one is [1]. [1]: https://github.com/swaywm/sway/issues/6570
2021-10-16Fix a couple of typosBirger Schacht-3/+3
2021-10-15Handle present events with NULL timespec fieldSimon Ser-1/+1
See [1]. [1]: https://github.com/swaywm/wlroots/pull/3245
2021-10-15cross-reference further documentationJonas Große Sundrup-0/+5
2021-10-15change incorrectly documented output typesJonas Große Sundrup-6/+7
2021-10-15clarify the type of raw outputJonas Große Sundrup-1/+1
2021-10-10use node_is_viewsiikamiika-4/+3
2021-10-08Improve built-in touchscreen detectionJari Ronkainen-2/+9
Adds detection code to handle pci-*-platform-* strings in ID_PATH References: https://github.com/swaywm/sway/issues/6590 Signed-off-by: Jari Ronkainen <ronchaine@gmail.com>
2021-10-08swaybar: fix cairo_font_options leakNathan Schulte-3/+2
2021-10-07Fix compile after wlroots commit c3e54021f8bbf3ec1c1e5906459be0ae85f5fb8cTassilo Horn-2/+2
2021-10-07readme: drop recommendation about packagingSimon Ser-3/+0
- The contact info is out-of-date - Sway is packaged in many distributions now - I don't think we necessarily need to mention this in the README
2021-10-04idle_inhibit: Fix tree view after changes in commit 152a559eBartel Sielski-4/+4
Commit 152a559e replaced the view pointer in the inhibitor struct with a pointer to the wlr_inhibitor for application inhibitors. But this was not changed in the sway_idle_inhibit_v1_application_inhibitor_for_view function. This caused a bug in the sway tree view where the application inhibitor is always "none".
2021-10-02sway-input.5.scd: Fix spelling errorsElyes HAOUAS-2/+2
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
2021-10-01commands: Remove unused code after 1d3681f52135Evgeniy Khramtsov-36/+0
Clang 13 reports: ../sway/commands.c:470:23: error: variable 'context' set but not used [-Werror,-Wunused-but-set-variable] enum command_context context = 0; ^ Last use of was removed in commit 1d3681f52135. Downstream PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258813
2021-10-01Chase wlr_xdg_surface breaking changesSimon Ser-7/+7
See [1]. [1]: https://github.com/swaywm/wlroots/pull/3106
2021-09-28Add support for DRM panel orientationSimon Ser-2/+9
References: https://github.com/swaywm/wlroots/pull/3205
2021-09-28readme: add missing spaceSimon Ser-1/+1
2021-09-25layer-shell: fix commit handlerKirill Primak-15/+19
This commit makes sure the extents are kept up-to-date, fixes not damaging the surface if its layer shell-specific state didn't change, and adds a check if the layer shell-specific state didn't change but the surface got mapped/unmapped, which could affect keyboard focus.
2021-09-24layer-shell: check `committed` bitmaskKirill Primak-0/+4
This avoids infinite configure-ack_configure-commit loop.
2021-09-23layer-shell: chase wlr layer surface refactorKirill Primak-11/+11
2021-09-21xdg-shell: remove unused request_maximize listenerKirill Primak-1/+0
2021-09-21Revert "xdg_shell: schedule configure on maximize requests"Kirill Primak-10/+0
This reverts commit 4dd46f06acc520449b980a5ea52be544cc5bfb6d, as the logic is now handled by wlroots.
2021-09-21xdg-shell: chase wlr xdg toplevel refactorKirill Primak-2/+2
2021-09-20Add -Dnoscanout debug optionSimon Ser-1/+4
This can help debugging direct scan-out issues, such as [1]. [1]: https://github.com/swaywm/wlroots/issues/3185
2021-09-20swaybar: properly draw blocks with transparent black borderNathan Schulte-34/+41
while the draw itself is a no-op, alignment must still be accounted this requires more signalling about the blocks (border_set; was the border set?)
2021-09-20Drop hardcoded font metric valuesHugo Osvaldo Barrera-2/+3
2021-09-20Avoid unecessary font metric calculationsHugo Osvaldo Barrera-6/+2
Prior to 62d90a8e, titlebar's font height (and other related values) would change any time any titlebar's content changed, so these values were recalculated each time any titlebar's content changed (or a new titlebar was created). However, since the above was merge, these values no longer change so often and we only need to recalculate them when the configured font changes (and stop calling `config_update_font_height` each time titlebars are rendered). This commit removes all the unecessary calls to this function and avoids all those unecessary calculations. Whenever the font strays from the default value, the `font` command is called, and it calls `config_update_font_height`, which is enough to keep the value always up to date. I've also added a default value to the `font_baseline` config, since otherwise that's zero for setups that don't explicitly specify a font.
2021-09-19sway-ipc.7.scd: fix typoaajonusonline-1/+1
2021-09-19README: Added Greek translationChristian Llupo-1/+75
2021-09-15swaybar: properly draw urgent block right borderNathan Schulte-1/+1
introduced via #3287 -- https://github.com/swaywm/sway/pull/3287/files#diff-a1e918ce0bc71f4f7934767541319e724a51a34a5418ecdc286065e50921eda4L239 uncovered via #3394 -- https://github.com/swaywm/sway/pull/3394/files#diff-a1e918ce0bc71f4f7934767541319e724a51a34a5418ecdc286065e50921eda4R258
2021-09-15build: remove scdoc stdin/stdout hackSimon Ser-5/+4
Since [1], Meson allows feeding the input file as stdin and capturing stout to the output file. We don't need the sh hack anymore. [1]: https://github.com/mesonbuild/meson/pull/8923
2021-09-13readme: Align Danish translation with main READMEKenny Levinsen-27/+38
2021-09-13readme: mention seatdSimon Ser-1/+1
When seatd is used, it isn't necessary to suid the sway binary.
2021-09-13swaynag: fix pointer button events on scaled outputsxdavidwu-2/+2
sway#6504 simplified rendering code by setting scaling at cairo, but that also changed button position records into ones without scale multiplication, breaking button events. This fixes it by not multiplying scale on events handling as well.
2021-09-13Rename pango_printf to render_textSimon Ser-12/+12
This avoids using the pango_ prefix, reserved for functions coming from the Pango library.
2021-09-13readme: link to gamja for IRCSimon Ser-18/+18
gamja offers a better experience than Kiwi. Obviously I'm 100% biased. Completely fine to not make the switch if someone feels differently.