aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
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.
2021-09-13readme: switch to Libera Chat for irSimon Ser-2/+2
2021-09-12Simplify swaybar/swaynag scaling codeCaduser2020-128/+124
Use `cairo_scale` to set the scale factor, removing redundant multiplications by `output->scale`.
2021-09-09introduce wlr_drm_lease_v1Simon Zeni-1/+41
This prevents sway from extending the desktop to i.e. VR headsets, and makes them available for DRM leasing. Non-desktop wlr_outputs will be offered through the wlr_drm_lease_v1_manager interface for client to lease.
2021-09-08view: fix child position calcKirill Primak-34/+22
Previously, the position was calculated incorrectly for nested subsurfaces.
2021-09-08build: subproject support for wayland-protocolslbonn-1/+1
As in wlroots: [1] [1]: https://github.com/swaywm/wlroots/pull/2953
2021-09-07render: fix -Ddamage=rerenderKirill Primak-5/+7
2021-09-06surface: chase wlr subsurface list/link changeKirill Primak-4/+8
2021-09-05view: fix saved buffer orderKirill Primak-1/+1
2021-09-04Fix overly-wide mark texturesDaniel De Graaf-1/+1
The width of the texture needs to be calculated using the string that is actually displayed in the texture.
2021-09-04commands: update split none command for a047b5ee4Ronan Pigott-2/+2
2021-09-03command: implement split noneRonan Pigott-2/+25
2021-09-02seatop_down: End if surface is destroyed or other seatop startsSimon Plakolb-19/+25
If the surface the pointer started to interact with is destroyed we also want the seatop_down to end. In case a drag is initiated we receive a call to handle_end.
2021-09-02input: Use seatop_down on layer surface clickSimon Plakolb-5/+31
This solves an issue where layer-shell items would not receive a button release event when the pointer left them while being pressed. The default seatop changes focus immediately while seatop_down defers any focus changes until the pointer is released or seatop_down is destroyed.
2021-08-31Add `output modeline` commandDavid Rosca-1/+94
Only works with DRM backend.
2021-08-28desktop/xwayland: restack surface upon activationTudor Brindus-0/+1
This commit updates Sway for swaywm/wlroots#2915.
2021-08-27config.in: use portable hour specifierNihal Jere-1/+1
`%l` is GNU specific. `%I` does the same thing but padded by zeros, and is POSIX compliant.
2021-08-27Deduplicate code for rendering titlebar textsHugo Osvaldo Barrera-57/+23
The title itself and marks were being rendered by two very-similar yet different functions, and any changes made to one had to be reflected on the other. This mostly prevents such oversights from happening, and keeps makes sure we keep both consistent.
2021-08-26Use fixed titlebar heightsHugo Osvaldo Barrera-66/+49
Use fixed titlebar heights. The default height is calculated based on font metrics for the configured font and current locale. Some testing with titles with emoji and CJK characters (which are substantially higher in my setup) shows that the titlebars retain their initial value, text does shift up or down, and all titlebars always remain aligned. Also drop some also now-unecessary title_height calculations. Makes also needed to be updated, since they should be positioned with the same rules.
2021-08-19Update Pango font description URL in sway.5.scdgrumpey-1/+1
Along with f4cda51 fixes #6217.
2021-08-16Fix typo in sway.5.scdquinno-1/+1
small typo fix (ptt => ppt)
2021-08-14layer-shell: replace close() with destroy()Simon Ser-5/+4
Update for the wlroots breaking change in [1]. [1]: https://github.com/swaywm/wlroots/pull/3108
2021-08-14cmd_bind_or_unbind_switch: fix copy/paste typo error messageEric Engestrom-2/+2
`[0]` is the switch type, not its state; we want `[1]` for that, and it's a string not an int :)
2021-08-12Fallback to other output modes if preferred mode failsSimon Ser-2/+20
Sometimes the preferred mode is not available due to hardware constraints (e.g. GPU or cable bandwidth limitations). In these cases it's better to fallback to lower modes than to end up with a black screen.
2021-08-12layer_shell: damage previous area when a surface shrinksRonan Pigott-6/+9
When a layer surface shrinks we need to damage the area it previously occupied, but we don't know the location of all its subsurfaces in the previous state, so instead damage a rectangle that encloses the entire previous extent.
2021-08-12xdg-decoration: let floating clients set bordersDudemanguy-4/+43
The xdg-decoration protocol allows clients to request whether they want to use server side decorations or client side decorations. Currently, sway ignores this and always enforces whatever the server is currently set to. Although tiled clients cannot be allowed to set borders, there is no harm in listening requests from floating clients. Sidenote: also fix an unrelated style error.
2021-08-12Document view_mapSimon Ser-0/+9
2021-08-10Add persian README filemzeinali-1/+72
2021-08-05seatop_down: Change type of sx, sy to double in begin_seatop_downDavid Rosca-2/+2
Losing the precision resulted in wlr_cursor and wlr_seat::pointer_state getting out of sync during pointer motion in seatop_down. Since the difference was always under 1 px, it was practically impossible to notice in normal use. But because of being out of sync, cursor_rebase would always end up incorrectly calling wlr_seat_pointer_notify_motion from seatop_default_begin (on releasing mouse button) which broke cursor locking. See #5405 Closes #4632