Commit graph

7650 commits

Author SHA1 Message Date
blinxen
400bcf4dbc
Merge a7a7660a49 into 845cdb190f 2026-02-03 19:35:21 +01:00
Calvin Lee
845cdb190f sway: add details to unsupported gpu nag 2026-02-03 16:07:39 +01:00
Calvin Lee
992d201512 sway: change unsupported GPU message to swaynag
This commit shows a swaynag message when an unsupported GPU is detected
which must be acknowledged by users. It also adds an environment
variable (`SWAY_UNSUPPORTED_GPU`) which may be used instead of the
`--unsupported-gpu` argument.

The `static` storage class for flag variables in main has also been
removed, as this should have no effect on the program.

Resolves: #8999
2026-02-03 14:16:11 +01:00
Furkan Sahin
b081eba05d bar_cmd_colors: fix crash on incorrect usage
should display error message instead to be consistent with other
subcommands.
2026-02-02 18:12:08 +01:00
llyyr
e3c2412565 sway: advertise color_manager_v1 version 2
Ref: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5223
2026-01-29 00:46:03 +01:00
Ole
40aabb80c6 sway-ipc(7): Clarify that the reply shown is an example
Fix documentation of sway-ipc. The example reply for GET_BINDIG_STATE is an example and not the exact reply. 

This bug seems to come from copy/paste from the ipc command SYNC directly above.
2026-01-14 10:33:51 +01:00
Vladimir Panteleev
a7a7660a49 fix(swaybar/dbusmenu): cache icon lookups to avoid repeated filesystem access
Add caching for icon lookups in menu items. Two new fields are added to
the menu item struct:
- icon_surface: cached icon surface loaded from icon_name
- icon_lookup_done: tracks whether icon lookup has been attempted

The icon is now looked up once and cached, rather than performing
filesystem access every time the menu is drawn. The cached surface is
properly cleaned up when the menu is destroyed.
2026-01-12 19:12:26 +01:00
Vladimir Panteleev
d0242fb6b4 fix(swaybar/dbusmenu): properly destroy cairo surface for icon data
Properly destroy cairo surface for icon data when freeing dbusmenu
items.
2026-01-12 19:12:26 +01:00
Vladimir Panteleev
2508a1d019 fix(swaybar/dbusmenu): fix null pointer dereference when loading icons
This change adds a null check when loading icons in the dbusmenu
code to avoid a segmentation fault when the icon surface fails to load.
2026-01-12 19:12:26 +01:00
Rex Fernando
3c0588a44f sway/input/cursor: fix crash on first stylus tap after reboot via null check
handle_tool_tip() previously used event->tool->data without checking
for NULL. When launching sway for the first time after a reboot, and
then tapping with a USI 2.0 stylus, the tool tip event is fired before
the tool proximity event. As event->tool is initialized during the tool
proximity handler handle_tool_proximity(), this was causing a crash.

The fix adds a NULL check before accessing the fields of
event->tool->data. In case of a NULL, a log message is emitted
indicating that the tool tip event fired before proximity. This logic is
identical to the logic in handle_tool_axis().

Fixes issue #8907
2026-01-08 18:49:51 +01:00
Simon Ser
8224d5fcf8 Disable Xwayland restacking for toplevel capture scenes
The main scene should drive Xwayland restacking.

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5108
2026-01-06 11:21:33 +01:00
Simon Ser
c09d0f1d4a Use goto-based error handling in view_init()
This is less surprising than checking for the failed flag in the
happy path.
2026-01-06 11:21:33 +01:00
llyyr
723b1ea3b7 sway/input/seat: chase wlroots breaking change
Ref: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5230
2026-01-05 16:30:20 +01:00
Félix Poisot
26eb393d6d sway/commands/output: add color_profile "--device-primaries"
When a display is connected, create a color transform from its
self-reported color characteristics
2026-01-04 19:48:23 +01:00
Félix Poisot
776d445ec5 sway/commands/output: color_profile "srgb" applies the piece-wise TF
Document that "gamma22" replaced the previous default.
2026-01-04 19:48:23 +01:00
Félix Poisot
f654fe8ede sway/config: apply output CT before initial commit
Currently, config apply sets the output's image description before the
initial commit, but sets the output's color transform after the commit.

In the case of a config reload removing a color profile and enabling
HDR, both the color transform and image description will be set, which
trips an assert in wlroots
2026-01-04 19:48:23 +01:00
Simon Ser
dbe8640035 desktop/xdg_shell: skip configure in request_maximize handler if unmapped
wlr_xdg_surface_schedule_configure() requires the xdg_surface to
be initialized.

Mirror the early return from request_fullscreen.
2025-12-21 16:38:06 +01:00
llyyr
238f0d4a8b tiling_resize: fix use-after-free on view unmap during resize
Closing a tiled window (mod+shift+q) while resizing (mod+click) causes
an use-after-free in handle_unref.

Both conditions can be true in this case, which will result in
dereferencing `e` on the second check after it has already been freed by
the first `seatop_begin_default`.

Fix by combining separate checks for the main container and its
horizontal/vertical siblings into a single condition.

The second check was added in 9e272a7986
and I've checked that this fix does not regress that issue.
2025-12-19 14:05:18 +01:00
Simon Ser
fa81ce8ee6 Use helpers to get supported TFs/primaries
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5086
2025-12-18 15:25:24 +01:00
rewine
f4aba22582 Drop org_kde_kwin_idle files
Has been replaced by ext_idle_notifier_v1

Signed-off-by: rewine <luhongxu@deepin.org>
2025-11-28 09:26:17 +01:00
johnpyp
897e7688bb commit dirty transactions upon window attribute changes 2025-11-22 16:35:19 +01:00
Damino
842ea06773 tree/view: check for null workspace output
Fixes #8950
2025-11-22 14:41:35 +01:00
g-rden
b54d1205d8 swaynag/main: free config_path
Otherwise config_path is never free'd
2025-11-20 12:31:30 +01:00
llyyr
d735bb99a9 sway/server: advertise wlr_color_representation_manager_v1 2025-11-13 17:02:47 +01:00
llyyr
055be4ec35 sway/server: advertise gamma2.2 and bt1886 transfer functions 2025-10-28 23:34:18 +01:00
bonsaiiV
b7eb6177e1
sway/commands/layout: fix flatten parent once
Fixes: f50e307227 ("sway/commands/layout: flatten parent once")
2025-10-18 18:55:46 +02:00
blinxen
9e035e0277 Remove unused includes 2025-10-13 22:11:39 +02:00
blinxen
0f7853e074 Rename dbusmenu functions to adhere to the style guide 2025-10-13 21:55:52 +02:00
blinxen
47234b37da Limit recursion depth when trying to find items under dbus menu 2025-10-13 21:47:17 +02:00
blinxen
0289272bd0 Remove comment that should be now obsolete 2025-10-13 21:28:56 +02:00
blinxen
9c1da3a631 Close dbus menu when unregistering sni 2025-10-13 21:28:33 +02:00
blinxen
023e68a673 Initialize surface height with 0 before drawing 2025-10-13 21:26:39 +02:00
blinxen
8241bde588 Move variable creation outside of conditional code block
See https://github.com/swaywm/sway/pull/8405#discussion_r1818100461
2025-10-13 01:35:28 +02:00
blinxen
6523a2379b Replace old usage of background-image.h
See https://github.com/swaywm/sway/pull/8405#discussion_r1817770755 and https://github.com/swaywm/sway/pull/8405#discussion_r1817770817
2025-10-13 01:35:12 +02:00
blinxen
56c4660ebc Remove trailing whitespace 2025-10-13 01:30:03 +02:00
Giancarlo Razzolini
f642064717 Apply suggestions from code review
Co-authored-by: Demi Marie Obenour <demiobenour@gmail.com>
2025-10-13 01:29:07 +02:00
Florian Franzen
42817f2a8e Tray: don't invoke dbus menu when tray is disabled 2025-10-13 01:28:40 +02:00
Felix Weilbach
c3df548647 Tray: Implement dbusmenu
Co-authored-by: Ian Fan <ianfan0@gmail.com>
Co-authored-by: Nathan Schulte <nmschulte@gmail.com>

Signed-off-by: Felix Weilbach <felix.weilbach@t-online.de>
2025-10-13 01:28:23 +02:00
llyyr
90d3270970 sway/input/cursor: send frame event when simulating pointer from tablet 2025-10-05 19:46:53 +02:00
Louis POIROT--HATTERMANN
ecfea6b8ae commands/scratchpad: don't hide scratchpad if no pending workspace
Fixes: https://github.com/swaywm/sway/issues/8909
2025-10-05 19:22:48 +02:00
nyxed
b4a9a1716f build: switch to explicit 'meson setup' syntax 2025-10-02 18:06:20 +02:00
llyyr
d9e615c507 sway/server: set color_manager for root scene
Chase https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5122/
2025-09-23 23:50:15 +02:00
Felix Pehla
bc96d0acdf README: update German translation
Update the information about display manager support (see #8861), as
well as markdown formatting of links and change some wording in the
German README.
2025-09-18 11:18:07 +02:00
Simon Ser
a7d9535eb3 input/text_input: stop using listener data
These are now NULL.

Fixes: aaab7f961e ("input/text_input: chase wlroots update")
Closes: https://github.com/swaywm/sway/issues/8864
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5107
2025-09-15 07:41:51 +02:00
nortio
7c1e192ea3
Update README.it.md for Italian
Updated italian readme to follow the recent changes to the English one.
I also removed "gestore di accesso" which in theory translates to
display manager, but in practice is never used in this context. Other
wikis such as [Debian](https://wiki.debian.org/it/DisplayManager) and
[Ubuntu](https://wiki.ubuntu-it.org/AmbienteGrafico/DisplayManager) just
use the term "Display Manager" as is. Another small thing that I
corrected is "canale di IRC" which sounds a bit weird.
2025-09-14 19:38:17 +02:00
aceydot
50a8750e01
Add Serbian README 2025-09-12 19:55:36 +02:00
Martin Dørum
a41b25020d
Update Norwegian README to make it more in line with the English one, as well as improving grammar 2025-09-12 15:43:30 +02:00
Kirill Chibisov
35b69158d7 readme: sync Japanese translation 2025-09-12 15:28:31 +02:00
Kirill Chibisov
862e9b8c20 readme: sync Russian translation 2025-09-12 15:28:31 +02:00
Oto Šťáva
68ac52ffc2 readme: Update and reword Czech translation 2025-09-11 23:48:16 +02:00