Commit Graph

338 Commits

Author SHA1 Message Date
Ivan Molodetskikh a2ad7b0854 Upgrade dependencies 2023-11-24 11:49:07 +04:00
Ivan Molodetskikh c9a79464da niri: Add a check for target screencast time below last
I've had this crash my session twice. Not sure what exactly happened.
2023-11-24 09:34:53 +04:00
Ivan Molodetskikh c082e2a618 niri: Rename presentation_time to target_presentation_time
Makes it clearer that this is a prediction.
2023-11-24 09:21:56 +04:00
Ivan Molodetskikh 19cafffe0f Fix top layer-shell surfaces keeping keyboard focus during fullscreen 2023-11-17 18:30:24 +04:00
Kirill Chibisov 5c48521646 Don't set screenshot for primary selection
It's already in clipboard selection, so no need to duplicate it.
2023-11-08 22:19:25 +04:00
Kirill Chibisov 907e0a03ef Add 'input.keyboard.track_layout' config option
Track layout for each window individually when user requested `Window`
tracking mode, keeping the default as global.
2023-11-08 19:09:11 +04:00
Ivan Molodetskikh 889d062df7 Render top layer under fullscreen surfaces when stationary 2023-11-02 13:07:01 +04:00
Ivan Molodetskikh 10905efeaf Refactor layer surface under cursor
Prepare for varying the top layer position.
2023-11-02 13:01:34 +04:00
Christian Meissl e7857efbd2 pointer input for layer surface 2023-11-01 20:28:44 +04:00
Ivan Molodetskikh 15144220fa Show notification on screenshot 2023-10-31 17:06:14 +04:00
Ivan Molodetskikh b0af1129c9 Include filename in screenshot-path 2023-10-31 14:23:54 +04:00
Ivan Molodetskikh 8fa5bf9a36 Make screenshot path configurable 2023-10-31 08:57:44 +04:00
Ivan Molodetskikh d854c2d699 Change cursor to crosshairs when taking a screenshot 2023-10-31 07:16:36 +04:00
Ivan Molodetskikh 073b52c3e6 Implement area selection screenshots 2023-10-30 20:29:03 +04:00
Ivan Molodetskikh 31f6b32fa3 Extract render_to_texture() 2023-10-30 20:28:13 +04:00
Ivan Molodetskikh 76db55c38c Don't block pointer focus refresh on transitions during lock 2023-10-30 20:19:51 +04:00
Ivan Molodetskikh 088877889d Add cursor-shape protocol 2023-10-30 14:00:27 +04:00
Kirill Chibisov 5c24754435 Don't send key on release from niri actions
Some clients run logic on `Release`, thus don't send the key originally
used for running `niri` actions.

Fixes #28.
2023-10-29 13:59:34 +04:00
Kirill Chibisov 0a2052945e Add support for wl_compositor@v6 2023-10-29 13:58:48 +04:00
Ivan Molodetskikh e73f33d6a3 Draw background with a solid color buffer 2023-10-29 10:45:24 +04:00
Ivan Molodetskikh 27e2648bd4 Remove some now-unnecessary &muts 2023-10-29 10:45:24 +04:00
Ivan Molodetskikh 5e543b8dc6 Move cursor surface alive check to refresh() 2023-10-29 10:45:24 +04:00
Ivan Molodetskikh 909a45db6f Use png crate directly instead of image
Reduce dependencies a bit.
2023-10-24 17:49:08 +04:00
Ivan Molodetskikh b20d8e7062 Implement ext-session-lock 2023-10-24 15:06:07 +04:00
Ivan Molodetskikh 3fd421f13f Update Smithay 2023-10-24 15:05:14 +04:00
Ivan Molodetskikh fb866c63e5 Extract update_pointer_focus() 2023-10-21 20:58:30 +04:00
Ivan Molodetskikh bae9575cc1 Rename refresh_cursor_focus() into pointer 2023-10-21 20:58:30 +04:00
Ivan Molodetskikh 8bde252ba4 Stop updating focus during transitions
This also includes touchpad swipes.
2023-10-21 20:58:30 +04:00
Ivan Molodetskikh 052ecdbe2a Check for ongoing animations earlier
Removes the inconsistency that when animating towards an empty
pointer position, the focus change would not wait until the end of the
animation.
2023-10-15 18:58:48 +04:00
Ivan Molodetskikh da59dfc5b4 Refresh pointer focus continuously
Fixes pointer focus not updating after:
- switching workspaces
- switching between windows so they move around
- client appearing below cursor
- client resizing to appear below cursor

And all other similar cases. Hopefully this doesn't slow things down
too much. Preliminary tracy analysis seems to indicate that it doesn't.
2023-10-15 16:33:24 +04:00
Ivan Molodetskikh d59fe34243 Make clear color a const
The damage tracker doesn't understand clear color changes.
2023-10-13 13:30:36 +04:00
Ivan Molodetskikh 0a32747495 Send dmabuf feedbacks from the backend 2023-10-13 13:30:36 +04:00
Ivan Molodetskikh f625dede1a Extract niri.clear_color() 2023-10-13 13:30:36 +04:00
Ivan Molodetskikh 3602876b5e Add a few more Tracy spans 2023-10-11 14:53:53 +04:00
Ivan Molodetskikh c8105ae1a6 Add screenshot-window action 2023-10-10 12:42:24 +04:00
Ivan Molodetskikh cb73bcfb32 Don't clear screenshot buffers
This is especially relevant for window screenshots.
2023-10-10 12:41:13 +04:00
Ivan Molodetskikh e78def3e2c Store screenshot in clipboard 2023-10-10 12:11:05 +04:00
Ivan Molodetskikh 082d734b2a Make zbus optional under "dbus" feature 2023-10-10 10:25:33 +04:00
Ivan Molodetskikh 9d7fdc4fc0 Fix redraw state resetting on redraw cancel 2023-10-10 10:03:14 +04:00
Ivan Molodetskikh 02f37c8573 Extract dbus server startup 2023-10-10 09:55:44 +04:00
Ivan Molodetskikh 66533ae0b1 Extract inhibit_power_key() 2023-10-10 09:02:33 +04:00
Ivan Molodetskikh d66bd87c66 Rename ToNiriMsg to ScreenCastToNiri 2023-10-10 08:55:54 +04:00
Ivan Molodetskikh a0b8da69c7 Extract on_screen_shot_msg 2023-10-10 08:54:15 +04:00
Ivan Molodetskikh 3c200fd64a Move dbus and systemd initialization out of Niri::new 2023-10-10 08:49:47 +04:00
Ivan Molodetskikh d9253a7137 Extract data variable 2023-10-10 07:59:50 +04:00
Ivan Molodetskikh 9fb8c616a8 Add a State::new tracy span 2023-10-10 07:57:22 +04:00
Ivan Molodetskikh 2508d3e08e Move refresh calls into State 2023-10-10 07:55:31 +04:00
Ivan Molodetskikh 189d1bd97b Add power-off-monitors bind
Implements https://github.com/YaLTeR/niri/issues/24
2023-10-09 18:37:43 +04:00
Ivan Molodetskikh d91d5d674c Set redraw state to idle on early returns
Haven't hit any problems due to this yet, but I suspect that it's
possible.
2023-10-09 17:40:28 +04:00
Ivan Molodetskikh 05b5ba0555 Add Niri::new Tracy span 2023-10-09 17:36:58 +04:00