Commit graph

623 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
cbe91d4a7c
Add physical_key to keyboard::Event
Co-authored-by: Exidex <16986685+Exidex@users.noreply.github.com>
2024-09-13 03:02:07 +02:00
Héctor Ramón Jiménez
c66355f289
Enter Runtime when calling Program::subscription 2024-09-13 01:48:15 +02:00
Nadji Abidi
190774258c
Add override_redirect for X11 windows
This commit add the `override_redirect` boolean field to the `PlatformSpecific` struct for linux platform.
This is a X11-specific flag allow bypassing window manager mapping for precise positioning of windows.
2024-09-11 00:00:40 +02:00
Héctor Ramón Jiménez
14e686cd37
Fix winit::conversion on Windows 2024-09-05 11:30:25 +02:00
Héctor Ramón
b5cbb4a4e4
Merge pull request #2284 from jquesada2016/mouse_passthrough
Add command for setting mouse passthrough
2024-09-05 11:22:03 +02:00
Night_Hunter
d1ceada119
add option for undecorated_shadow on windows (#2285)
* add option for undecorated_shadow on windows

* formated
2024-09-05 11:17:44 +02:00
Héctor Ramón Jiménez
64ec099a9b
Add mouse passthrough tasks to window module
Co-authored-by: Jose Quesada <jquesada2016@fau.edu>
2024-09-05 11:13:37 +02:00
Héctor Ramón Jiménez
9628dc20d5
Reconnect Clipboard on window close
Fixes #2564
2024-09-03 11:23:54 +02:00
Héctor Ramón Jiménez
0dcec519be
Add get_scale_factor task to window module 2024-08-30 13:02:49 +02:00
Andy Terra
6dc71f6f3b Expose additional mouse interaction cursors 2024-08-16 10:44:58 -04:00
Héctor Ramón Jiménez
9b99b932bc
Produce window::Event::Closed only if window exists 2024-08-15 02:11:17 +02:00
Héctor Ramón Jiménez
7c2abc9b8b
Fix crash when application boots from a URL event in macOS 2024-08-15 01:52:45 +02:00
Héctor Ramón Jiménez
8b45d620d0
Revert window::close producing a window::Id
Instead, subscribing to `window::close_events` is
preferable; since most use cases will want to react
to the user closing a window as well.
2024-08-12 05:50:22 +02:00
Héctor Ramón Jiménez
22fc5ce0ea
Produce window::Event::Closed on window::close 2024-08-12 05:20:44 +02:00
Héctor Ramón Jiménez
01aa84e41a
Make window::close return and introduce Task::discard 2024-08-12 05:12:42 +02:00
Héctor Ramón Jiménez
7decbb3d5d
Fix formatting in iced_winit::clipboard 2024-08-12 03:07:11 +02:00
Maja Kądziołka
f92e01e913
iced_winit: drop Clipboard before Window
Fixes #2482, avoids nasal daemons
2024-08-11 22:33:17 +02:00
Héctor Ramón Jiménez
169667ef1b
Plug received_url in winit::program 2024-08-01 19:25:02 +02:00
Héctor Ramón Jiménez
fd593f8fb0
Return window::Id in window::open 2024-07-30 22:26:55 +02:00
Héctor Ramón Jiménez
10f367a313
Avoid exiting when a window is being opened
Fixes #2532
2024-07-30 00:51:46 +02:00
Héctor Ramón Jiménez
a5b1a1df54
Fix macOS race condition when closing window 2024-07-24 12:18:53 +02:00
Héctor Ramón Jiménez
884c66ca15
Depend on wasm-bindgen-futures only for Wasm
Fixes #2518
2024-07-24 10:39:24 +02:00
Héctor Ramón Jiménez
2eea9b81e4
Exit runtime with control_sender instead of break 2024-07-24 10:34:24 +02:00
Héctor Ramón Jiménez
a108b2eebe
Add resize_events subscription to window module 2024-07-13 12:53:06 +02:00
Héctor Ramón Jiménez
1c1bee6fd8
Finish window::open only when window fully opens
... and run initial `Task` after `window::open` for
applications. This fixes certain race conditions.
2024-07-11 10:44:44 +02:00
Héctor Ramón Jiménez
8c110c1be9
Make window visible after surface creation in iced_winit 2024-07-11 10:21:45 +02:00
Héctor Ramón Jiménez
8bc49cd886
Hide Subscription internals
.. and introduce `stream::channel` helper
2024-07-05 02:16:45 +02:00
Héctor Ramón Jiménez
88611d7653
Hide internal Task constructors 2024-07-05 01:13:28 +02:00
Héctor Ramón Jiménez
e8b1e5a112
Fix fonts not being loaded at startup 2024-06-21 15:38:51 +02:00
Héctor Ramón Jiménez
50dd2a6cc0
Fix application sometimes exiting at startup 2024-06-20 22:28:28 +02:00
Héctor Ramón Jiménez
92e08c8f07
Add get_latest and get_oldest tasks in window 2024-06-20 01:13:09 +02:00
Héctor Ramón Jiménez
65c8e08b44
Fix initialization race conditions in WebAssembly
WebGL is still broken, but oh well... Time to move on.
2024-06-19 19:07:07 +02:00
Héctor Ramón Jiménez
5f25943449
Fix WebAssembly compilation
Rendering seems to still not work, however.
2024-06-19 17:39:17 +02:00
Héctor Ramón Jiménez
341c9a3c12
Introduce daemon API and unify shell runtimes 2024-06-19 01:53:40 +02:00
Héctor Ramón Jiménez
88b9384402
Use Task chaining to simplify multi_window example 2024-06-14 03:05:58 +02:00
Héctor Ramón Jiménez
b21e4567dc
Remove parent from PlatformSpecific window settings 2024-06-14 02:33:05 +02:00
Héctor Ramón Jiménez
b328da2c71
Fix Send requirements for Wasm targets 2024-06-14 01:52:30 +02:00
Héctor Ramón Jiménez
a25b1af456
Replace Command with a new Task API with chain support 2024-06-14 01:47:39 +02:00
Héctor Ramón Jiménez
5d7dcf417c
Introduce subscription::Event
... and remove `PlatformSpecific` from `Event`
2024-06-11 19:41:05 +02:00
Héctor Ramón Jiménez
83296a73eb
Fix widget operations in multi_window runtime 2024-06-10 22:03:46 +02:00
Héctor Ramón Jiménez
ae2bf8ee40
Broadcast orphaned events in multi_window runtime 2024-06-10 22:03:46 +02:00
Héctor Ramón Jiménez
e400f972c1
Introduce window::Id to Event subscriptions
And remove `window::Id` from `Event` altogether.
2024-06-10 22:03:46 +02:00
Héctor Ramón Jiménez
07f94d68b5
Update outdated READMEs of subcrates 2024-05-27 13:47:57 +02:00
Shan
647761ad56
Added scale_factor to Screenshot data for use when cropping to widget bounds 2024-05-24 19:46:18 -07:00
Héctor Ramón Jiménez
fb23e4c3ff
Fix main window not closing in multi-window runtime 2024-05-16 19:36:50 +02:00
Héctor Ramón Jiménez
b19e95fa18
Add SpecificWith variant to window::Position 2024-05-10 22:16:35 +02:00
Héctor Ramón Jiménez
718fe5b7de
Pass WindowHandle by value to window::run_with_handle 2024-05-08 23:14:37 +02:00
Héctor Ramón Jiménez
7e7285d60f
Plug new_events handler to event loop 2024-05-07 17:00:55 +02:00
Héctor Ramón Jiménez
2645524f88
Update winit to 0.30 2024-05-07 16:07:56 +02:00
Héctor Ramón Jiménez
aae8e4f5cf
Fix clippy lints for new 1.78 stable toolchain 2024-05-02 17:23:32 +02:00