1355 Commits

Author SHA1 Message Date
Felix Bowman
4e2a1a12f8
completions: zsh click-method option fix
"button-areas" seems to be the argument this command expects instead of
"button-area" -- other shells also have the option as "button-areas".

(cherry picked from commit ccd676e5a939aabafd297fcec1db3058c651a91b)
2024-07-22 17:12:24 +02:00
Isaac Freund
dc0d8112a6
build: bump version to 0.3.5-dev 2024-07-10 12:58:47 +02:00
Isaac Freund
4f39ce79e9
build: bump version to 0.3.4 2024-07-10 12:55:32 +02:00
Isaac Freund
6849176e25
PointerConstraint: fix assertion failure
The assertion in PointerConstraint.confine() can currently still be
triggered if the input region of a surface is changed and the pointer is
moved outside of the new intersection of input region and constraint
region before PointerConstraint.updateState() is called.

This can happen, for example, when a client is made non-fullscreen at
the same time as the pointer is moved across the boundary of the new,
post-fullscreen, input region. If the pointer crosses the boundary
before the transaction completes and updateState() is called, the
assertion in PointerConstraint.confine() will fail.

To fix this, listen for the surface commit event rather than the
set_region event to handle possible deactivation on region changes.

(cherry picked from commit a7411ef2a6e0ec38fc4931a142bd33bc8b618d01)
2024-07-10 12:55:02 +02:00
Palanix
667b047cdf
docs: mention zig build -h in readme
(cherry picked from commit 1f5bf1d972816a4c61f28e4b3601582355a98931)
2024-07-10 12:55:02 +02:00
Isaac Freund
eab893c481
layer-shell: fix on_demand keyboard focus
Currently keyboard focus is stolen from layer surfaces with
on_demand keyboard interactivity any time Root.applyPending() is called.

This commit fixes the behavior to only steal focus when explicitly
focusing a different window/layer surface.

(cherry picked from commit 4232d6b99f2eeede9f318aa6043128530597cc4e)
2024-07-10 12:55:02 +02:00
Isaac Freund
cf63d16846
XdgPopup: send configure after initial commit
Currently we send the first configure for xdg popups before the popup
has made its initial commit. This is incorrect according to the protocol
and may confuse clients.

(cherry picked from commit ec16f1c3753d51feb7dfc6d406dd508f4513a106)
2024-07-10 12:55:02 +02:00
Isaac Freund
6e0c103705
Output: fix Wayland backend support
The wlroots Wayland backend does not support gamma LUT application and
will currently fail to render anything if river commits a gamma LUT.

To fix this, test the state when applying a gamma LUT and fall back to a
state with no gamma LUT set if that fails.

This problem was revealed by 2e09b66 which flags gamma as dirty on all
outputs when they are enabled.

(cherry picked from commit a80e0f7322b1f9f8b091a327aaea366b615042c8)
2024-07-10 12:55:02 +02:00
Isaac Freund
5cfa1fc8f5
docs: tweak repology link wording in readme
(cherry picked from commit 0997fde28e1aad90a983d28061deed9fdcb972f3)
2024-07-10 12:29:14 +02:00
Isaac Freund
6564db22df
Xwayland: fix unsound cast
The X11 protocol uses 16 bit integers for width/height but we use
32 bit integers everywhere else in river. Make sure that values outside
the range of a 16 bit integer don't cause river to crash with an
assertion failure.

I think that coordinates outside the range of a 16 bit integer could
theoretically be reasonable with tiled high resolution displays in the
future. I doubt they ever get used in practice today but at the same
time we can't allow an errant layout generator to crash river.

(cherry picked from commit ae7f4b8fcbb323e68b07eebf8dc8cca38b582940)
2024-07-10 12:29:06 +02:00
Isaac Freund
b85da67886
Output: flag gamma as dirty on enable
We can end up with stale gamma settings if we don't re-check the
current gamma settings for the output on enable.

(cherry picked from commit 2e09b66963805caccfe8534d69f2f35dd4a4c3f7)
2024-07-10 12:28:57 +02:00
Isaac Freund
99b31c39f3
input: apply map-to-output on output activation
Currently a map-to-output input config setting loses effect when an
output is disabled and re-enabled for example.

(cherry picked from commit de3035563ccd5ea9f4fe0b843618e4265c880e30)
2024-07-10 12:28:49 +02:00
Isaac Freund
36cdbbc087
SceneNodeData: fix fromSurface() use after free
We must clean up the user data of the wlr_surface for layer surfaces and
lock surfaces as fromSurface() may be called (e.g. by the idle inhibit
implementation) after the scene node has been destroyed but before the
wlr_surface is destroyed.

(cherry picked from commit 28a14c6794ddc21a23d2e14d41761007d15569e8)
2024-07-10 12:28:44 +02:00
Isaac Freund
4653a7730e
ci: log build summaries
(cherry picked from commit e2f3cd82521ba94bfb6907a05a3022fdc514a355)
2024-07-10 12:28:33 +02:00
Isaac Freund
f577cb5f2e
ci: re-enable FreeBSD builds
Official FreeBSD zig tarballs have returned!

This reverts commit 7fdba05b8249b10d10a2c64c1175429539c01af1.

(cherry picked from commit f9201ae7cdc9cf7c36817c81df0134942bfbc3cb)
2024-07-10 12:28:23 +02:00
Isaac Freund
77699aa0ba
ci: use mirror for zig tarball downloads
Eat Github's resources rather than the Zig Software Foundation's
resources!

(cherry picked from commit 16c938111da571765409947ee371017478633c4c)
2024-07-10 12:28:17 +02:00
Isaac Freund
64e2555505
build: bump version to 0.3.4-dev 2024-06-07 14:16:32 +02:00
Isaac Freund
1e65e652c2
build: bump version to 0.3.3 2024-06-07 14:11:31 +02:00
Isaac Freund
a17270721e
build: update to Zig 0.13.0
(cherry picked from commit 8da69699e952ee6163bb626c637c34ad7754bab7)
2024-06-07 14:10:24 +02:00
Isaac Freund
914f5fae20
ci: cleanup messy tar invocations
(cherry picked from commit c5b1d1de4e78fcd39d08d8b71486dd85edc60f3c)
2024-06-07 14:10:24 +02:00
Isaac Freund
5cd22edb58
build: bump version to 0.3.3-dev 2024-05-20 12:17:38 +02:00
Isaac Freund
3ff620fae3
build: bump version to 0.3.2 2024-05-20 12:14:13 +02:00
Isaac Freund
25675e4fcb
ci: drop FreeBSD CI for now
There is no FreeBSD tarball from ziglang.org and FreeBSD itself has not
yet updated their Zig package to 0.12.0. This commit should be reverted
when a good way is found to obtain Zig 0.12.0 for the FreeBSD CI.

(cherry picked from commit 7fdba05b8249b10d10a2c64c1175429539c01af1)
2024-05-20 12:13:18 +02:00
Isaac Freund
b1bac96731
build: switch to the Zig package manager
No more git submodules!

(cherry picked from commit 958f8798b6fdfab40aa29e1538827fa74e833a1c)
2024-05-20 12:13:18 +02:00
Isaac Freund
9cbd66f543
build: add -Dno-llvm build option
(cherry picked from commit 045ee7bd25963d1a12635fd83af0629474c5575f)
2024-05-20 12:07:52 +02:00
Isaac Freund
312465e0cb
build: update to Zig 0.12
(cherry picked from commit 033cad47bf63f2914865c19fc10b4dc991007515)
2024-05-20 12:07:52 +02:00
Isaac Freund
c757e1b33e
build: bump version to 0.3.2-dev 2024-05-18 17:43:46 +02:00
Isaac Freund
6a2eeba9ed
bulid: bump version to 0.3.1 2024-05-18 17:09:03 +02:00
Isaac Freund
a019045a16
PointerConstraint: remove overly tight assert 2
This is a second copy of the same assert that was removed in the last
commit. It should have been removed by that commit as well but was
overlooked.

(cherry picked from commit 680cb8ef699f89cd7ce0b613221e073b534c22c5)
2024-05-18 17:07:48 +02:00
Isaac Freund
7b42c38276
PointerConstraint: remove overly tight assert
This assert is incorrect if Xwayland is enabled and an Override Redirect
window steals the keyboard focus from the parent surface.

It also seems likely to be hit if a Wayland client attempts to use a
pointer constraint on a subsurface. I don't think a pointer constraint
on a subsurface is likely to work entirely correctly and I don't know of
any Wayland clients that try such a thing. We can't let them crash river
by trying though.

(cherry picked from commit 5d1fc034bc6aedc340671d5de76add308effd2e8)
2024-05-18 17:07:48 +02:00
Isaac Freund
fa077d31b4
InputPopup: fix minor issues, simplify code
(cherry picked from commit c75d32c88b2fda71b543b72e02117cdfb7693e2e)
2024-05-18 13:41:28 +02:00
Isaac Freund
cc5a249e9e
TextInput: ignore enable requests without focus
(cherry picked from commit b35a40b9dfa3e70dbdc11e8383c584164b475420)
2024-05-18 13:41:28 +02:00
Isaac Freund
84ec97aff2
InputPopup: fix naming
(cherry picked from commit ba6023e38a965d80788a3de33d6c19968db03647)
2024-05-18 13:41:28 +02:00
leviathan
7db9ade574
input-method-v2: Implement popups
(cherry picked from commit 74baf7225ad95f8288f5dc1fe50345425cd62f71)
2024-05-18 13:41:28 +02:00
Isaac Freund
9c56eb051f
Server: fix filtering of newly created globals
Fixes: https://codeberg.org/river/river/issues/1068
(cherry picked from commit b5a80c7b9b34a42b2546d8724498b0b6d59f6cec)
2024-05-18 13:41:28 +02:00
ymcx
9b0e90cdb4
command/swap: fix cursor warp on focus change
(cherry picked from commit bed50f0dd2099e06c85f0fd0cc3bbdb10f3c9353)
2024-05-18 13:41:28 +02:00
Isaac Freund
cfb67b9e7a
Keyboard: fix redundant leave/enter on creation
Currently if a second keyboard input device is created river will send
a wl_keyboard.leave event immediately followed by a wl_keyboard.enter
event. This serves no purpose and can confuse clients, in particular due
to fctix creating/destroying virtual keyboards on focus change.

Fixes: https://codeberg.org/river/river/issues/1062
References: https://github.com/fcitx/fcitx5/issues/1044
(cherry picked from commit 1e3ef88bd573e4940f7e9dcffdbf119161473e4d)
2024-05-18 13:41:05 +02:00
Isaac Freund
717894b007
Cursor: don't hide while pointer constraint active
Fixes: https://codeberg.org/river/river/issues/1053
(cherry picked from commit f66eec92482dabb782d5457caef4ca1dbfb82b59)
2024-05-18 13:30:59 +02:00
ed9e9c4d16
Remove assert that was causing crashes 2024-05-16 00:55:37 -07:00
930dcb7dcd
Fix current view tags status 2024-05-15 19:20:48 -07:00
929db0098a
Merge branch 'master' of https://codeberg.org/river/river 2024-05-15 04:36:26 -07:00
Isaac Freund
b5a80c7b9b
Server: fix filtering of newly created globals
Fixes: https://codeberg.org/river/river/issues/1068
2024-05-15 09:48:55 +02:00
ymcx
bed50f0dd2
command/swap: fix cursor warp on focus change 2024-05-14 23:37:10 +02:00
Isaac Freund
ad0b71c310
github: automatically close prs 2024-05-14 13:02:29 +02:00
Isaac Freund
1e3ef88bd5
Keyboard: fix redundant leave/enter on creation
Currently if a second keyboard input device is created river will send
a wl_keyboard.leave event immediately followed by a wl_keyboard.enter
event. This serves no purpose and can confuse clients, in particular due
to fctix creating/destroying virtual keyboards on focus change.

Fixes: https://codeberg.org/river/river/issues/1062
References: https://github.com/fcitx/fcitx5/issues/1044
2024-05-12 16:16:04 +02:00
Isaac Freund
f66eec9248
Cursor: don't hide while pointer constraint active
Fixes: https://codeberg.org/river/river/issues/1053
2024-05-12 10:42:19 +02:00
16d76ae86c
Add tags field to focused_view event 2024-05-03 03:02:41 -07:00
LordMZTE
e29d66f1de
Xwayland: disallow negative output coordinates
Xwayland clients on outputs at negative positions don't currently
receive mouse events due to a bug in Xwayland. As a workaround, we
disallow negative output positions when Xwayland is enabled.

References: https://gitlab.freedesktop.org/xorg/xserver/-/issues/899
Closes: #1058
2024-05-02 14:08:34 +02:00
Alex Mirrlees-Black
442913fa82
input: change ScrollFactor and MapToOutput to align with other options
(cherry picked from commit 5262a4c5a61f547acd29560f1af9cf342b9958ae)
2024-04-27 13:39:47 +02:00
Alex Mirrlees-Black
b5964d7f1f
input: fix scroll-factor resetting if unspecified
(cherry picked from commit bd5da261eb584fd40e0b1e1609d7db5faa0ae517)
2024-04-27 13:39:47 +02:00