Commit Graph

1223 Commits

Author SHA1 Message Date
Isaac Freund
c4877de3ca
logo: add an official river logo
This logo is based on original raster images designed by Karl Felix
Schewe (@kardwen on codeberg/github). I created a modified svg version
from scratch in inkscape. I've included several variations (with text,
with text and a background) for various use cases.

The versions with text use the Dongle font [1] which is released under
the OFL and therefore free for us to use in the logo without
acknowledgement according to [2].

[1]: https://github.com/yangheeryu/Dongle
[2]: https://openfontlicense.org
2024-03-26 13:24:53 +01:00
tiosgz
198351794b
Keyboard: ignore multiple presses of a key
I have managed to crash river (because the relevant assertion was wrong)
on this using fcitx5 (5.1.8) and anthy with the following sequence of
key events on a physical keyboard (every line followed by releasing
everything):
    super-; (my shortcut to enable anthy)
    shift-letter (fcitx doesn't release shift on its virtual keyboard)
    escape
    shift (fcitx sends another press event)
The failure to release shift is not the only weirdness happening, but
it's what eventually lead to the assertion failure.
2024-03-26 10:48:28 +01:00
Isaac Freund
7ceed0d093
docs: update release urls for codeberg migration 2024-03-25 20:12:29 +01:00
Isaac Freund
4d0315b565
docs: update wiki url 2024-03-25 19:56:46 +01:00
Isaac Freund
19133422c1
codeberg: maybe fix issue template take 2 2024-03-25 19:45:52 +01:00
Isaac Freund
4efeb2a278
codeberg: maybe fix issue template 2024-03-25 19:43:26 +01:00
Isaac Freund
b106466ad9
codeberg: add bug report issue template 2024-03-25 19:37:53 +01:00
Isaac Freund
12de175e11
command/map: add note about upstream xkbcommon fix 2024-03-24 11:46:07 +01:00
Isaac Freund
ed99d7bc14
docs: migrate to codeberg
wiki and release migration are TODO
2024-03-22 16:49:28 +01:00
Leon Henrik Plickat
b77b42f0d6
command/focus-view: add -skip-floating 2024-03-22 12:37:18 +01:00
Isaac Freund
6491310e12
layer-shell: crop surfaces to output bounds 2024-03-20 13:23:36 +01:00
Isaac Freund
13b9d23e2f
View: fix potential assertion failure on destroy
If a View is destroyed while part of a transaction we can currently hit
an assertion failure, this commit fixes it.
2024-03-18 22:33:24 +01:00
Leon Henrik Plickat
3473d6c0be
TabletTool: use "pencil" cursor shape
This makes tablet tool cursors visually distinct from pointer cursors by
default. Client may of course continue to set custom cursors for tablet
tools if they have focus.

Also fixes a custom cursor set by a client persisting after the tablet
exits the client's surface until proximity out.
2024-03-18 20:43:59 +01:00
Isaac Freund
f3cd98288a
Root: increase transaction timeout to 100ms
This was dropped from 200ms to 50ms in 4a65af66. However 50ms seems
to be a bit too short in practice. I often hit ugly frame imperfection
do to timeouts when toggling mpv between a small floating window and
fullscreen for example, even on a relatively beefy desktop computer.

This only happens while the video is playing in mpv, not while it is
paused. I believe this is due to mpv ignoring the compositor's hints for
when to render a new frame entirely while playing a video. It instead
renders at the framerate of the video being played, even if the
compositor requests a change in size. This isn't great but seems
unlikely to change [1].

Overall, hitting 100ms timeouts subjectively doesn't feel anywhere near
as sluggish as hitting 200ms timeouts and offers better frame perfection
than 50ms timeouts in at least this one example, there are bound to be
others.

[1]: https://dudemanguy.github.io/blog/posts/2022-06-10-wayland-xorg/wayland-xorg.html
2024-03-17 22:55:43 +01:00
Yutaro Ohno
ff8365d350 README: update required wlroots version to 0.17.2 2024-03-16 13:28:29 +09:00
Isaac Freund
3f49ff9631
deps: update zig-wayland for a minor cleanup 2024-03-15 19:10:18 +01:00
Isaac Freund
d64cbd2100
touch: handle cancel event, fix assertion failure
Currently we can hit an assertion failure in the putNoClobber() call in
response to the down event since we fail to handle the cancel event.

This commit fixes that issue.
2024-03-15 19:08:10 +01:00
Isaac Freund
0e7a692831
XdgToplevel: validate move/resize request serial
Currently we only support interactive move/resize with the pointer,
touch and tablet tool support are TODO.

Validate the serial here to ensure we don't start a pointer move/resize
in response to the client attempting to start a move/resize with
touch/tablet tool.

This fixes an assertion failure that the pointer's cursor is not hidden
during move/resize, which is how the issue was discovered. Another win
for assertions :)
2024-03-15 15:24:46 +01:00
Isaac Freund
1b63c463a7
security-context: implement protocol
Sensitive Wayland protocols such as wlr_screencopy and wlr_data_control
(clipboard managment) are now blocked by default inside security
contexts (e.g. flatpak 1.15.6 or later).

User configuration of the allowlist/blocklist is TODO.
2024-03-15 14:47:43 +01:00
Isaac Freund
e143cdeca9
pointer-gestures: move to input manager
We definitely should not create duplicates of the global for each seat.

Not that we really support multi-seat yet, but someday.
2024-03-15 13:25:02 +01:00
Isaac Freund
451387a4a9
Server: remove all listeners on deinit() 2024-03-14 13:42:14 +01:00
Isaac Freund
388c95d2e9
RuleList: eliminate "self" naming convention 2024-03-14 13:07:58 +01:00
Isaac Freund
8764b82da5
Vector: eliminate "self" naming convention 2024-03-14 13:06:29 +01:00
Isaac Freund
37d9d6e725
Switch: eliminate "self" naming convention 2024-03-14 13:04:41 +01:00
Isaac Freund
0131d4670d
SwitchMapping: eliminate "self" naming convention 2024-03-14 13:02:38 +01:00
Isaac Freund
82a40725f9
Control: eliminate "self" naming convention 2024-03-14 13:01:49 +01:00
Isaac Freund
3077074329
Mode: eliminate "self" naming convention 2024-03-14 13:00:15 +01:00
Isaac Freund
b9dde3c49b
LayoutDemand: eliminate "self" naming convention 2024-03-14 12:59:42 +01:00
Isaac Freund
c3cee0b91f
PointerMapping: eliminate "self" naming convention 2024-03-14 12:58:50 +01:00
Isaac Freund
278865065b
StatusManager: eliminate "self" naming convention 2024-03-14 12:57:23 +01:00
Isaac Freund
1d8bca24ae
SeatStatus: eliminate "self" naming convention 2024-03-14 12:55:54 +01:00
Isaac Freund
4a259d322b
InputConfig: eliminate "self" naming convention 2024-03-14 12:53:09 +01:00
Isaac Freund
b65e4f6b17
idle-inhibit: fix naming, eliminate "self" naming convention
Also add missing copyright headers
2024-03-14 12:51:34 +01:00
Isaac Freund
b0d4610999
LayoutManager: eliminate "self" naming convention 2024-03-14 12:40:26 +01:00
Isaac Freund
b7c53ceda7
Config: eliminate "self" naming convention 2024-03-14 12:40:13 +01:00
Isaac Freund
6c3f851464
Keyboard: eliminate "self" naming convention 2024-03-14 12:35:21 +01:00
Isaac Freund
f02d26c533
InputManager: eliminate "self" naming convention 2024-03-14 12:34:28 +01:00
Isaac Freund
693a2b0dda
XwaylandOverrideRedirect: eliminate "self" naming convention 2024-03-14 12:29:49 +01:00
Isaac Freund
28f30b2571
Mapping: eliminate "self" naming convention 2024-03-14 12:22:15 +01:00
Isaac Freund
904b623b84
XwaylandView: eliminate "self" naming convention 2024-03-14 12:21:21 +01:00
Isaac Freund
0e2cac08df
XdgToplevel: eliminate "self" naming convention 2024-03-14 12:19:36 +01:00
Isaac Freund
2eb2a13284
Cursor: eliminate "self" naming convention 2024-03-14 12:08:24 +01:00
Isaac Freund
99a99b72e7
View: eliminate "self" naming convention 2024-03-14 12:07:27 +01:00
Isaac Freund
d8f041c96f
Output: eliminate "self" naming convention 2024-03-14 12:06:33 +01:00
Isaac Freund
267aa9a9b5
Seat: eliminate "self" naming convention 2024-03-14 12:05:36 +01:00
Isaac Freund
8a9b07ae4b
Root: eliminate "self" naming convention 2024-03-14 12:04:15 +01:00
Isaac Freund
aadb92dc0b
Layout: eliminate "self" naming convention 2024-03-14 12:02:32 +01:00
Isaac Freund
dabf7e9e97
Server: clean up initialization
This ended up uncovering a latent bug in the IdleInhibitorManager
initialization code, not sure how that ever worked.
2024-03-14 11:55:23 +01:00
Hugo Machet
859578873a
mailmap: map Hugo's old emails to new one 2024-03-14 11:12:30 +01:00
Hugo Machet
81f5b970e6
completions: Add missing completions
Added:
  * close (bash)
  * focus-output args: up right down left (bash,fish,zsh)
  * send-to-output args: up right down left (bash,fish,zsh)
  * default-attach-mode (bash,fish)
  * output-attach-mode (bash,fish)
  Zsh only as I don't know how does it works in other shell and so
  it's still need to be done.
    * send-to-output flags: -current-tag
    * keyboard-layout flags: -rules -model -variant -options
    * [un]map-switch, lid -> close|open and tablet -> on|off

Fixed:
  * rule-add|list-rules actions, rename tag to tags (bash,fish,zsh)

Some descriptions probably need to be changed with new args like up,
right..
2024-03-14 11:12:29 +01:00