Gwilherm Folliot
01d24daacc
input-capture: various fixes
2024-10-25 17:04:31 +02:00
Gwilherm Folliot
5a3c5827a3
Free EIS server on disable
2024-10-25 17:04:31 +02:00
Gwilherm Folliot
44ba88d82c
input-capture: various fixes
2024-10-25 17:04:30 +02:00
Gwilherm Folliot
497a2ce308
input-capture: code cleanup
2024-10-25 17:03:23 +02:00
Gwilherm Folliot
6851f0cce0
input-capture: inhibit inputs
2024-10-25 17:03:23 +02:00
Gwilherm Folliot
e4035e6808
WIP: input capture
2024-10-25 17:03:11 +02:00
Vaxry
5c72a7fea1
core: move to sdbus-cpp2 ( #278 )
...
* core: move to sdbus-cpp2
* oopsie LMAO
* thing
* nix/overlays: add sdbus overlay
---------
Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2024-10-22 18:45:24 +01:00
fb9c8d665a
core: reset toplevel before disconnect
2024-10-05 23:23:07 +01:00
dcfabff0fe
screencopy: cleanup sanitization
2024-09-28 12:52:33 +01:00
4adb6c4c41
screencopy: fix handles not being restored
...
fixes #264
2024-09-23 17:35:43 +01:00
15932f0f9e
core: add --version and improve --help
2024-09-21 16:45:23 +01:00
a8ebdcb011
screencopy: fix missing restore tokens after a double restart
2024-09-21 16:35:22 +01:00
bab430b3cc
screencopy/picker: add an option to allow restore token by default
...
fixes #258
screencopy:allow_token_by_default -> bool
2024-09-21 16:07:33 +01:00
5e40936fa0
screencopy: improve restore data handling
2024-09-21 15:59:58 +01:00
5d64be5bd8
screencopy: fixup handle passing to the picker
...
fixes #262
2024-09-21 15:45:34 +01:00
ac1b8c3067
core: add explicit casts to wl_proxy* for clang
...
fixes #261
2024-09-21 00:24:39 +01:00
Vaxry
eb3f3d9854
core: Move to hyprwayland-scanner ( #260 )
...
* move to hw-s
* hyprland-share-picker: add missing sources to meson, format CMake
* CMake: bump hw-s version
* CMake: fix protocolnew external protos
* CMake: get wayland.xml from wayland-scanner
* Nix: add missing deps
* Meson: use hw-s for protocols, add hyprutils
---------
Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2024-09-20 18:01:12 +01:00
e695669fd8
screenshot: fix compilation due to dubious cast
...
fixes #257
2024-09-11 10:29:39 +01:00
Alexandre Acebedo
11e15b437e
portals: application of the retries count in hlOnBufferDone ( #255 )
2024-09-02 00:02:23 +02:00
Lennox Schneider
a08ecbbf33
screencopy: attempt retry when pw doesn't return buffers ( #249 )
...
* portals: fix output screencopy not capturing after error
* portals: limit amount of retries for screencopy
* portals: change max retries count
2024-08-19 14:25:26 +01:00
dec05eba
3b8c78145a
global-shortcuts: fix crash by ignoring duplicate shortcuts ( #241 )
...
* global shortcuts: fix crash by ignoring duplicate shortcuts
hyprland_global_shortcuts_manager_v1_register_shortcut will cause an
error if the (app_id, shortcut_id) combination has already been
registered. Ignore shortcuts that have already been registered.
When a shortcut is registered again it should also overwrite the
session for the keybind to make the shortcut work after restarting
an application, otherwise the key can't be used again.
* Show warning if the shortcut has already been registered
* Remove {} around short ifs
2024-07-23 14:01:00 +02:00
0bb709491b
core: sanitize environment and paths from user data
...
fixes #242
2024-07-22 13:32:58 +02:00
c5b3093871
core: fix compilation with pw >= 1.1.82
...
fixes #227
2024-07-02 19:45:21 +02:00
Aqa-Ib
8f1ee9f964
screencopy: clamp the timer to a miminum of 6 milliseconds ( #226 )
...
When the timer is less than 6 milliseconds, the screen copy portal would frequently fail to start working.
2024-06-11 22:57:19 +02:00
Yaroslav
91e48d6acd
core: Small fixes ( #215 )
...
* fix build warnings
* properly generate wayland protocols on rebuild
* make systemd service installation optional
2024-05-21 12:16:37 +01:00
v3llocet
af7c87a32f
core: fix inShellPath, Permission denied ( #213 )
2024-05-15 16:54:17 +01:00
1f228ba2f1
screencopy: add a small time buffer for next queue frame
...
ref #120
2024-05-02 16:08:52 +01:00
ccabd97be3
config: add screencopy:max_fps
2024-05-02 16:05:56 +01:00
12af841341
screencopy: fixup timing issues with frame re-scheduling
...
ref #120
2024-05-02 16:01:58 +01:00
Tom Englund
0fe840441e
core: reset screenshot pointer aswell ( #209 )
...
ensure the screenshot portal is destructed before the connection is
down, otherwise it segfaults inside sdbus.
2024-04-25 16:47:35 +01:00
9ace6f969c
core: use a lock_guard for loopRequestMutex
...
fixes #207
2024-04-21 19:33:52 +01:00
Jan Beich
15fd76cb6e
screencopy: add missing header for sdbus-cpp 1.5.0
...
src/portals/Screencopy.cpp:956:9: error: use of undeclared identifier 'close'
close(PBUFFER->fd[plane]);
^
src/portals/Screencopy.cpp:1293:21: error: use of undeclared identifier 'close'
close(pBuffer->fd[plane_tmp]);
^
src/portals/Screencopy.cpp:1308:17: error: use of undeclared identifier 'close'
close(pBuffer->fd[plane]);
^
2024-02-26 15:41:56 +02:00
65fb44ae49
config: add explicit ctors for config variables
...
fixes #190
2024-02-21 16:29:24 +00:00
5a59264758
screencast: remove frame callbacks on every stream state change
2024-01-25 01:23:05 +00:00
4fc83e6871
core: avoid using uninitialized ptrs
2024-01-18 15:50:22 +01:00
899a70e759
core: don't critically exit if env doesnt have home
...
fixes #163
2024-01-07 19:14:05 +01:00
7596dec7be
screencopy: set allowToken to true when token is found
...
ref #123
2024-01-05 15:52:29 +01:00
536e6ed570
screencopy: properly handle stream resume on all frame statuses
...
fixes #162
2024-01-05 15:46:53 +01:00
Mihai Fufezan
874c6ab200
Fix Nix
2024-01-03 17:24:17 +02:00
a2c37e2d6e
core: fix invalid type passed to CConfig
2024-01-03 14:10:31 +01:00
c5b69eb5b5
config: add a config with hyprlang
2024-01-03 12:59:40 +01:00
54a30259be
core: temporairly disable foreign_toplevel dynamic bind
...
ref #147
2023-12-31 01:04:31 +01:00
576a49ef3d
core: fix incorrect usage of ms in poll thread
...
fuck me
2023-12-25 15:22:00 +01:00
24141c05c2
core: avoid having the toplevel mgr bound all the time
2023-12-25 15:05:30 +01:00
f5c3576c3b
screencast: guard pipewire stream validity for queue
2023-12-11 22:48:39 +00:00
Alexis Brodeur
c23f738673
screencopy: Enable support for BGR888 shared memory buffers ( #143 )
...
This simply adds the cases to the conversion functions. The rest of the
code needs no change from screen and window capture to work as expected.
2023-12-03 22:02:23 +00:00
11009ba077
screencopy: safer iteration of vector in destroyStream
2023-11-20 18:52:06 +00:00
716da5e0f3
screenshare: destroy bo on pwStreamRemoveBuffer
2023-11-20 18:50:48 +00:00
Junxuan Liao
8d3538e113
core: Destroy pipewire streams when ScreenCast sessions are closed ( #130 )
...
* fix: avoid double freeing the screencopy stream
* fix: avoid leaking pipewire streams
* style: remove brackets around the short if
2023-11-19 12:36:20 +00:00
Oliver Enes
b2fc111096
portal: Added back screenshot functionality ( #127 )
2023-11-05 01:00:51 +00:00