aboutsummaryrefslogtreecommitdiffstats
path: root/sway/server.c
Commit message (Collapse)AuthorAge
* server: Use wlr_renderer_get_texture_formatsLibravatar Kenny Levinsen13 days
| | | | | | | wlr_renderer_get_{dmabuf|shm}_texture_formats have been replaced by a unified wlr_renderer_get_texture_formats interface using buffer caps. References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4644
* Implement transient seat managementLibravatar Andri Yngvason2024-03-18
|
* Re-create renderer when lostLibravatar Simon Ser2024-03-14
|
* server: fix wlr_seat use-after-free on exitLibravatar Simon Ser2024-03-14
| | | | | | | | | | Same as [1]. I originally tried to properly handle seat destruction, but that turned out to be a can of worms [2]. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4590 [2]: https://github.com/swaywm/sway/pull/8034
* xdg-shell: send WM capabilitiesLibravatar Simon Ser2024-03-08
|
* xdg-shell: implement popup repositioningLibravatar Simon Ser2024-03-08
|
* Define _POSIX_C_SOURCE globallyLibravatar Simon Ser2024-02-23
| | | | See discussion in https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4555
* Drop unnecessary includes from sway/server.hLibravatar Simon Ser2024-02-15
|
* ext-foreign-toplevel-list: Implement protocolLibravatar Merlin Lex2024-02-12
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4543
* Chase wlroots!4443Libravatar Kirill Primak2024-01-25
|
* Add debug flag to re-enable wl_drmLibravatar Simon Ser2024-01-20
| | | | | | | | | | 7e69a7076fc8 ("Drop wl_drm") has dropped wl_drm, however a lot of software wasn't quite ready for this (Xwayland, libva, amdvlk). Keep wl_drm disabled by default to pressure the wl_drm phase-out, but add a -Dlegacy-wl-drm flag for users to restore the previous behavior in the meantime. References: https://github.com/swaywm/sway/issues/7897
* renderer: Render scene_graphLibravatar Alexander Orzechowski2024-01-18
|
* Mark DRM lease protocol privilegedLibravatar Simon Ser2024-01-08
| | | | | Allowing sandboxed clients to request DRM leases has security implications.
* Drop wl_drmLibravatar Simon Ser2024-01-04
| | | | See https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4397
* Remove wlr_presentation in sway_server structLibravatar Billli112023-12-28
| | | It is no longer in use.
* Detect proprietary DisplayLink driversLibravatar Simon Ser2023-12-12
| | | | | evdi is open-source, but is just some condom for their proprietary user-space driver.
* Detect Nvidia proprietary driver via drmGetVersion()Libravatar Simon Ser2023-12-12
| | | | | This is less punishing for users with the Nvidia driver loaded but not used by Sway (e.g. for CUDA).
* xdg-shell: chase events updateLibravatar Kirill Primak2023-11-23
|
* Pass wl_display to wlr_output_layoutLibravatar Simon Ser2023-11-23
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4310
* Chase wlroots!4440Libravatar llyyr2023-11-22
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4440
* Add support for security-context-v1Libravatar Simon Ser2023-11-21
| | | | | | | As a first step, deny access to privileged protocols to sandboxed apps. References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3589
* Drop support for KDE's idle protocolLibravatar Simon Ser2023-10-05
| | | | We support the standard idle-notify protocol since Sway 1.8.
* sway/server: Fix null pointer crash when Xwayland disabledLibravatar Manuel Stoeckl2023-09-10
|
* Hide xwayland_shell_v1 from regular clientsLibravatar Simon Ser2023-08-24
| | | | | | | Regular clients are not allowed to use this interface. wlroots already sends a protocol error if a non-Xwayland client tries to use this interface, but let's remove all temptation by hiding it completely.
* Add support for cursor-shape-v1Libravatar Simon Ser2023-07-24
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4106
* Send wl_surface.preferred_buffer_scaleLibravatar Simon Ser2023-07-12
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3696
* idle-inhibit-v1: simplify with server globalLibravatar Simon Ser2023-06-23
| | | | | | We only have a single running server, no need to keep track of multiple server instances. Also no need to support multiple idle inhibit managers.
* Handle gamma-control-v1 set_gamma eventsLibravatar Simon Ser2023-06-08
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4046
* Add support for wlr-layer-shell ON_DEMAND keyboard interactivityLibravatar Erik Reider2023-06-06
| | | | | This allows for layer shell surfaces to receive focus while the surface is explicitly focused, i.e allowing text fields to receive keyboard input just like a regular surface.
* Pass version to wlr_compositor_create()Libravatar Simon Ser2023-04-14
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3696
* Add support for fractional-scale-v1Libravatar Simon Ser2023-02-10
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3511
* launcher: support external launcher tokensLibravatar Ronan Pigott2023-02-05
|
* Add `primary_selection` config optionLibravatar Aidan Dang2022-12-05
| | | | | | | | | | | | See: https://github.com/swaywm/sway/issues/4511 Adds a bool config option `primary_selection`, which explicitly enables/disables the primary selection clipboard. Defaults to enabled. This is implemented as a launch-only option which enables or disables the creation of the `zwp_primary_selection_device_manager_v1` global. Co-authored-by: Tilde Rose <t1lde@protonmail.com>
* Chase breaking changes in wlroots!3903Libravatar Simon Ser2022-11-30
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3903
* Make DRM backend optionalLibravatar Simon Ser2022-11-28
|
* launcher: initialize launcher_ctxs once on startupLibravatar Ronan Pigott2022-11-26
|
* Update for wlroots!3814Libravatar Simon Ser2022-11-15
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3814
* ipc: add view content typeLibravatar Simon Ser2022-11-15
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3599
* sway/server: specify wlr-layer-shell version on creationLibravatar Simon Zeni2022-11-14
|
* Add support for ext-idle-notify-v1Libravatar Simon Ser2022-10-14
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3753
* Enable single-pixel-buffer-v1Libravatar Simon Ser2022-08-04
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3428
* Refuse to start when SUID is detectedLibravatar Kenny Levinsen2022-06-03
| | | | | | | This ensures that those surprised by the deprecation of SUID operation receive an error rather than accidentally having sway run as root. This detection will be removed in a future release.
* server: request xdg-shell v2Libravatar Rouven Czerwinski2022-05-16
| | | | | | | | Wlroots does not yet support the newer xdg-shell versions and now requires the compositor to set the supported xdg-shell version during creation. Set this to v2 for sway as well. Fixes https://github.com/swaywm/sway/issues/7001
* Implement ext-session-lock-v1Libravatar Daniel De Graaf2022-04-29
|
* Avoid format-truncation warningLibravatar Daniel De Graaf2022-04-09
| | | | | | | | | | | | | | | | | | The existing code gives this error when compiled with GCC 12: ../sway/server.c: In function ‘server_init’: ../sway/server.c:217:75: error: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 8 [-Werror=format-truncation=] 217 | snprintf(name_candidate, sizeof(name_candidate), "wayland-%d", i); | ^~ ../sway/server.c:217:66: note: directive argument in the range [-2147483647, 32] 217 | snprintf(name_candidate, sizeof(name_candidate), "wayland-%d", i); | ^~~~~~~~~~~~ ../sway/server.c:217:17: note: ‘snprintf’ output between 10 and 20 bytes into a destination of size 16 217 | snprintf(name_candidate, sizeof(name_candidate), "wayland-%d", i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Because i is never negative, this is a false positive, but it is easy to change i to unsigned to silence the error.
* Fix snprintf compiler warningLibravatar Muhamed Hobi2022-02-08
|
* Upgrade for wlroots surface refactoringLibravatar Simon Ser2022-01-13
| | | | | | See [1] for details. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3412
* Add support for linux-dmabuf surface hintsLibravatar Simon Ser2021-12-13
| | | | References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/1376
* Fixup headless output namesLibravatar Simon Ser2021-12-09
| | | | | | | | | | | | We use the headless backend to create a special fallback output used when no other output is connected. However this messes up the "real" headless output names users have come to expect (e.g. currently the first headless output will be named "HEADLESS-2" instead of "HEADLESS-1"). Fix this by setting the output name with [1]. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3395
* sway: replace noop_output by fallback_outputLibravatar Simon Zeni2021-11-25
| | | | | wlroots removed the support for the noop backend. Instead we rely on the headless backend to provide the fallback output.