Ivan Molodetskikh
7d41f113cb
Change non-bug error! to warn!
...
Be consistent with our usage.
2024-02-21 09:20:34 +04:00
Ivan Molodetskikh
9ce19ad7de
Use niri_render_elements! for the screenshot UI
2024-02-21 09:12:40 +04:00
Ivan Molodetskikh
82fffdea80
Fix locking with DPMS-inactive monitors
...
This both enables locking while monitors are powered off (they have no
buffer attached at that point on a TTY, so no sensitive content can
become visible), and fixes the condition below to check even if the
rendering was skipped.
2024-02-21 07:40:50 +04:00
Ivan Molodetskikh
d58a45a96c
Add systemd feature flag for systemd-specific things
2024-02-21 07:27:49 +04:00
Ivan Molodetskikh
62892d6361
Prevent locking while another lock client is already active
...
Fixes double swaylock from manual + swayidle.
2024-02-17 07:47:06 +04:00
Viktor Pocedulic
363e1d8764
input: enable configuring of trackpoint devices
2024-02-15 10:27:12 +04:00
Ivan Molodetskikh
5e553c2679
Implement org.freedesktop.ScreenSaver Inhibit
...
xdg-desktop-portal currently has no way of disabling the Inhibit portal
or ever returning an error to the application from it. Thus Flatpak
Firefox will never fall back to its Wayland backend. To remedy this,
let's actually implement the FDO Inhibit interface that the portal can
use.
2024-02-11 22:26:59 +04:00
Ivan Molodetskikh
b9116c579a
Implement idle-notify and idle-inhibit
2024-02-09 15:50:40 +04:00
Ivan Molodetskikh
d8dcadc5b2
Clamp animation slowdown to sane values
2024-02-07 20:03:23 +04:00
Ivan Molodetskikh
6424a2738d
Make all animations configurable
2024-02-07 17:14:24 +04:00
Ivan Molodetskikh
026ad8f377
Add a way to override the element ID for primary output check
2024-02-07 11:30:52 +04:00
Ivan Molodetskikh
592791611a
Change render functions to accept iterators
2024-02-06 17:53:25 +04:00
Ivan Molodetskikh
d073d2ab3d
Move render functions to render_helpers
2024-02-06 17:53:25 +04:00
Ivan Molodetskikh
b2298db5c5
Split render_helpers.rs
2024-02-06 11:25:25 +04:00
Ivan Molodetskikh
b0d0fce5f3
Move use into feature-gated function
2024-02-05 17:40:16 +04:00
Ivan Molodetskikh
b62a07956a
Add niri_render_elements! {}
...
We will be using this in several other places.
2024-02-05 13:55:09 +04:00
Ivan Molodetskikh
9afd728ae9
Add error messages to backend initialization
2024-02-01 16:55:46 +04:00
Ivan Molodetskikh
2e50f8dee0
Hardcode winit transform for now
2024-01-31 23:02:38 +04:00
Ivan Molodetskikh
7052f0129e
Stop screencasts on size changes
2024-01-31 23:02:38 +04:00
axtloss
962e159db6
Add option to rotate outputs
2024-01-31 23:02:38 +04:00
Ivan Molodetskikh
59ff331597
Implement wlr-foreign-toplevel-management
...
The parent event isn't sent but whatever.
2024-01-30 12:30:57 +04:00
Christian Meissl
b813f99abd
tty: reset surface state after changing monitor state
...
changing the "ACTIVE" property of a surface requires
to re-evaluate the surface state.
2024-01-30 08:03:21 +04:00
Ivan Molodetskikh
6d7c220137
Try harder to find an output for the screenshot UI
...
The mouse might be outside any outputs, let's try to open in that case
anyway.
2024-01-27 14:09:55 +04:00
Ivan Molodetskikh
d77aac1afa
Fix damage when rendering to texture
2024-01-27 10:50:40 +04:00
Ivan Molodetskikh
ecdf756b55
Name output render element better
2024-01-25 08:02:33 +04:00
Christian Meissl
73f3c160b2
use pixman for cursor plane rendering
2024-01-25 07:49:51 +04:00
Ivan Molodetskikh
f5642ab733
Ignore popup grabs when IME keyboard grab is active
...
Doing this properly will require more refactors, potentially in Smithay.
For now let's just ignore popup grabs to make popups work.
2024-01-23 17:05:08 +04:00
Ivan Molodetskikh
ab9706cb30
screencast: Emit MonitorsChanged
2024-01-23 12:02:52 +04:00
Ivan Molodetskikh
5cacd03e85
Return error instead of broken screenshot for portal
2024-01-21 10:03:13 +04:00
Ivan Molodetskikh
dc47de178f
Add an option to skip the hotkey overlay at startup
2024-01-20 08:31:05 +04:00
Ivan Molodetskikh
475b3df2b5
Don't crash when failing to render a cursor
...
I only hit this when the renderer was completely busted, but
nevertheless.
2024-01-19 09:13:32 +04:00
Ivan Molodetskikh
4b9cb2f0d3
Add exit confirmation dialog
2024-01-19 08:33:54 +04:00
Ivan Molodetskikh
3461c66d2c
Redraw upon starting PW stream
...
Otherwise it may take a while for the first frame to arrive.
2024-01-18 21:16:36 +04:00
Ivan Molodetskikh
011c91c98a
Add an important hotkeys overlay
2024-01-18 20:32:44 +04:00
Ivan Molodetskikh
fa9b3ed106
Add a config parse error notification
...
We can't rely on a notification daemon being available, especially
during initial niri setup. So, render our own.
2024-01-18 12:44:05 +04:00
Ivan Molodetskikh
0f85c79548
Watch config path even if it didn't exist at startup
2024-01-18 11:13:36 +04:00
Ivan Molodetskikh
40c85da102
Add an IPC socket and a niri msg outputs subcommand
2024-01-17 10:45:18 +04:00
Ivan Molodetskikh
f068157f55
Add a calloop futures executor
2024-01-17 10:24:01 +04:00
Ivan Molodetskikh
12590f689a
Write a comment on xdg-decoration lack of live-reload
2024-01-16 20:43:28 +04:00
Ivan Molodetskikh
4656332d07
Add live-reload to libinput settings
2024-01-16 20:29:37 +04:00
Ivan Molodetskikh
5f440f7be3
Add live-reload for output on/off
2024-01-16 15:34:00 +04:00
Ivan Molodetskikh
9e667efc4c
Close layer surfaces upon output removal
...
Fixes https://github.com/YaLTeR/niri/issues/23
2024-01-16 13:28:29 +04:00
Ivan Molodetskikh
69907f123d
Add live-reload of output scales
2024-01-16 11:34:34 +04:00
Ivan Molodetskikh
6ca3b6ddb5
Move output scale setting into niri
2024-01-16 09:46:02 +04:00
Ivan Molodetskikh
83719a49b7
Add live-reload of output positions
2024-01-16 09:46:02 +04:00
Ivan Molodetskikh
da4967d43c
Reposition all outputs on any change
...
This way the positioning is independent of the order of plugging in.
2024-01-16 08:43:28 +04:00
Ivan Molodetskikh
e4643c6dbe
Implement security-context, hide some protocols from it
2024-01-15 16:02:07 +04:00
Ivan Molodetskikh
59763fd0da
Hide decoration globals when we need CSD
...
This gets the current SDL2 with libdecor working.
2024-01-15 16:01:01 +04:00
Ivan Molodetskikh
632a00fcca
Implement popup grabs
2024-01-13 09:00:57 +04:00
Ivan Molodetskikh
952ff02982
Keep track of keyboard focus manually
2024-01-12 17:14:18 +04:00