Ronan Pigott
1c4b94ae3c
node: prettify node type names
2 years ago
Ronan Pigott
eb5021ef99
root: move the workspace matching code to its own file
...
This removes the pid_workspace bits from tree/root before it gets
too interesting.
No functional change.
2 years ago
Simon Ser
af8a5a8918
build: drop intermediate libraries for protocols
2 years ago
Simon Ser
e5475d9310
build: drop "server" from target name for protocol code
2 years ago
Simon Ser
5be5a038da
build: unify server & client protocol generation
...
No need to make a difference here, let's just generate header
files for both.
2 years ago
Simon Ser
366f6ef3d3
build: drop wayland-scanner fallback
2 years ago
Manuel Stoeckl
e2bc8866f4
Use shm_open instead of mkstemp
...
shm_open is more reliable because it does not require
a writeable filesystem folder, unlike mkstemp.
2 years ago
Simon Ser
7623292734
Update for wlroots!3814
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3814
2 years ago
Simon Ser
717e9ef581
ipc: add view content type
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3599
2 years ago
Simon Ser
907ca48a61
Listen to the output request_state event
...
References: https://github.com/swaywm/wlroots/pull/2693
2 years ago
Simon Ser
024c3e4428
input/seat: locally compute drag icon offset
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3861
2 years ago
Simon Zeni
e1be46875d
sway/server: specify wlr-layer-shell version on creation
2 years ago
Kirill Primak
85005b52fe
output: set damage ring bounds to pixel values
...
Fixes: https://github.com/swaywm/sway/issues/7254
2 years ago
Alexander Orzechowski
34933bb843
workspace_create: Don't allow NULL name
2 years ago
Joe Kappus
fdde67405e
build: bump wlroots dependency to 0.17.0
2 years ago
Baltazár Radics
5c239eaac5
container_get_siblings: handle NULL workspace
2 years ago
Simon Ser
d945c8f519
lock: fix crash on output destroy
...
Closes: https://github.com/swaywm/sway/issues/7120
2 years ago
Kirill Primak
7862fa670e
Use wlr_damage_ring
...
wlr_output_damage is to be replaced with wlr_damage_ring, so use that.
2 years ago
Simon Ser
dcd2076f38
Use wl_signal_emit_mutable()
...
This function fixes segfaults when emitting a signal potentially
removes arbitrary listeners.
2 years ago
Kirill Primak
6c3b35701d
ci: install hwdata
2 years ago
Callum Andrew
3e19836f0e
criteria: allow matching for NULL string criteria
2 years ago
Puck Meerburg
e40eb338b9
criteria: allow matching on empty (NULL) titles
2 years ago
Puck Meerburg
0fdeb4ca84
tree: support formatting null titles
...
Any windows that have never had a title set visually behave closer to
that of an empty title, but are unformattable, as the code bails out
early on a NULL title.
2 years ago
pudiva chip líquida
7cc8ab6d6c
Support libinput's 1.21 new dwtp option
...
Support the new dwtp (disable while trackpointing) option introduced in
libinput 1.21, allowing users to control whether the trackpoint (like
those in Thinkpads, but not only) should be disabled while using the
keyboard/touchpad.
See: https://gitlab.freedesktop.org/libinput/libinput/-/issues/731
2 years ago
Alexander Orzechowski
a61815d385
container_floating_set_default_size: Store workspace size box on the stack
2 years ago
Daniel De Graaf
8aa89dc277
Fix focus tracking when session lock is active
...
Remove the incorrect attempt to block focus changes when an input grab
is present and replace it with the same logic used for layer_shell-based
screen lockers: restore the focus after changing it.
This fixes a use-after-free of seat->workspace if outputs are destroyed
while a screen lock is enabled.
2 years ago
Daniel De Graaf
8f7bb145b7
Rework session lock keyboard focus handling
...
When removing outputs, it is possible to end up in a situation where
none of the session lock client's surfaces have keyboard focus,
resulting in it not receiving keyboard events. Track the focused
surface and update it as needed on surface destroy.
2 years ago
Yaroslav de la Peña Smirnov
9d99bb956f
Fix keymap being NULL and segfaulting on dev add
...
Moved `libinput_config` to the callers of
`sway_input_configure_libinput_device` so that we send the event after
the added event.
2 years ago
Tudor Brindus
5e514e6474
input: tweak focus behavior to allow focusing parent containers
...
Sway focuses the inactive child when focusing split containers. However,
there is currently no way to focus the parent container itself by mouse.
A user must use the keyboard to do so.
This commit maintains the current behavior, but makes it such that a
second click on the split container titlebar (i.e., after its children
are visible) focuses the split container itself.
2 years ago
Simon Ser
9400bd963c
Add support for ext-idle-notify-v1
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3753
2 years ago
cparm
99fd096d69
Avoid double free in criteria_destroy()
2 years ago
Simon Ser
7a6afc5199
Fix leaks in criteria_destroy()
2 years ago
Tudor Brindus
c7bced9329
input: focus container when scrolling on titlebar
...
Fixes #6503 .
2 years ago
Tudor Brindus
09354db878
input: focus floating container when clicked on border
...
Fixes #7209 .
2 years ago
Ferdinand Schober
99acdb4e62
Use keyboard_state.focused_surface directly
2 years ago
Ferdinand Schober
be7707874a
use seat directly
2 years ago
Ferdinand Schober
e2bb5799af
check for NULL
2 years ago
Ferdinand Schober
d5659948f1
allow pointer_constraints on layer_shell surfaces
2 years ago
ohno418
07c827b4be
Improve Japanese translation
2 years ago
Andri Yngvason
b00b05f792
sway/commands/output: Add command for unplugging non-physical outputs
2 years ago
Simon Ser
04f8a655e7
build: simplify protocol paths
...
No need for arrays here.
2 years ago
Simon Ser
78b5c0a77e
swaymsg: show mode picture aspect ratio
2 years ago
Simon Ser
f70d1e1b95
ipc: expose mode picture aspect ratio
2 years ago
マリウス
b0fc83485d
man: Add XWayland information
2 years ago
Alex Maese
cffb006feb
swaymsg: show non-desktop property when pretty printing outputs
2 years ago
Alex Maese
52f0e3a4d5
sway: add non-desktop outputs to json when running `swaymsg -t get_outputs`
2 years ago
Alex Maese
c015db4a9f
sway: Add non-desktop-output type
...
Currently, when encountering a non-desktop display, sway offers the
output for leasing and returns without storing it in a sway specific
output type like `struct sway_output`. Additionally, running
`swaymsg -t get_outputs` doesn't show non-desktop outputs.
This commit stores the non-desktop outputs into a struct called
`sway_output_non_desktop`, and adds them to a list on `sway_root`
2 years ago
Filip Szczepański
1c368fbb5f
Fix crash in xdg_activation_v1.c
...
wlr_xdg_surface_from_wlr_surface() can return a NULL pointer, so check for NULL before dereferencing it.
2 years ago
Simon Ser
07bfeb2abc
config/output: test adaptive sync
...
Required for [1].
[1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3637
2 years ago
Simon Ser
aaa6c4ac89
ipc: drop WLR_OUTPUT_ADAPTIVE_SYNC_UNKNOWN case
...
This has been removed from wlroots.
2 years ago