Commit graph

61 commits

Author SHA1 Message Date
Jonathan Johnson
be6918d5eb
Generalized app error handling 2024-10-07 07:44:56 -07:00
Jonathan Johnson
662cebf193
Provide access to Arc<winit:🪟:Window>
This simplifies managing safely accessing the raw window handle,
allowing the window thread to pass a reference back to the app thread
using an app event.
2024-09-29 19:53:30 -07:00
Jonathan Johnson
b95df0cc54
Publicizing darkmode function 2024-09-21 13:58:11 -07:00
Jonathan Johnson
6869fcf3be
Registering xdg before starting winit 2024-09-21 13:47:59 -07:00
Jonathan Johnson
95fc2c6744
Added darkmode detection on Linux 2024-09-21 13:40:40 -07:00
Jonathan Johnson
c985e024fc
Window::request_inner_size 2024-09-16 08:03:36 -07:00
Jonathan Johnson
9f0b4a3c3e
Fixing doc references 2024-09-14 10:02:48 -07:00
Jonathan Johnson
0b1e41d1c5
v0.4.0 2024-09-14 09:56:53 -07:00
Jonathan Johnson
d40ebc61f7
Moving attempted fix to the right spot 2024-09-14 07:48:26 -07:00
Jonathan Johnson
ade531605e
attempting to work around Wayland resize bug 2024-09-14 07:47:13 -07:00
Jonathan Johnson
57acfd2e15
Removing dbg 2024-09-13 10:10:20 -07:00
Jonathan Johnson
68530e7d69
delay_visible activation + initialized 2024-09-13 10:08:03 -07:00
Jonathan Johnson
331bfdd353
App::prevent_shutdown() 2024-09-12 07:37:14 -07:00
Jonathan Johnson
93479b8111
Window::clone fix 2024-09-11 16:17:15 -07:00
Jonathan Johnson
6c59e6942f
Supporting both inner and outer position 2024-09-07 09:24:15 -07:00
Jonathan Johnson
35e011dc92
RunningWindow::outer_size 2024-09-07 07:15:29 -07:00
Jonathan Johnson
90669b6b8a
WindowBehavior::moved 2024-09-07 07:05:43 -07:00
Jonathan Johnson
4cab6aedd1
Refactored app init 2024-09-06 11:31:23 -07:00
Jonathan Johnson
516401f48c
Exposing event loop details 2024-09-06 10:41:14 -07:00
Jonathan Johnson
2b7829ac56
Releasing v0.3.2 2024-08-28 08:46:43 -07:00
Jonathan Johnson
4b1eb39d4f
Clippy 2024-08-28 08:43:43 -07:00
Jonathan Johnson
ea1c0975dc
Fixing multiwindow close behavior 2024-08-28 08:42:39 -07:00
Jonathan Johnson
d0af8bb4e0
Releasing v0.3.1 2024-07-15 09:31:47 -07:00
Jonathan Johnson
5c1e667413
Windowattributes::delay_visible
Refs khonsulabs/cushy#152
2024-07-05 09:05:10 -07:00
Jonathan Johnson
e69d979229
Added date to changelog 2024-05-12 08:21:20 -07:00
Jonathan Johnson
400ff14efa
Releasing v0.3.0 2024-05-12 08:17:44 -07:00
Jonathan Johnson
ee4528cab2
Attempt to make resizes repaint in time
This introduces a RedrawGuard concept, which allows the event loop to
block until the window has been repainted. This hopefully will resolve
khonsulabs/cushy#114.
2024-05-12 06:30:59 -07:00
Jonathan Johnson
36b8c1fc8b
Defining msrv 2024-05-02 07:03:38 -07:00
Jonathan Johnson
14a2957d6c
Only accessing wayland when wayland is enabled 2024-05-01 12:13:06 -07:00
Jonathan Johnson
afcae2d4c0
Fixed extension builder options 2024-05-01 12:06:35 -07:00
Jonathan Johnson
6048148efd
winit 0.30 2024-05-01 11:29:26 -07:00
Jonathan Johnson
657493a81d
Re-exporting rwh feature flags 2024-01-18 06:31:12 -08:00
Jonathan Johnson
0fa6a4b3a5
Relaxed Sized restrictions on App parameters 2023-12-28 21:22:32 -08:00
Jonathan Johnson
f5b8c8cf8b
Releasing v0.2.0 2023-12-27 15:17:22 -08:00
Jonathan Johnson
1ff4b7b2a6
Window no longer keeps msg channel allocated 2023-12-22 08:24:12 -08:00
Jonathan Johnson
8ca300682c
Debug for WindowAttributes 2023-12-21 15:38:38 -08:00
Jonathan Johnson
1e162ed8df
AsApplication + impl Application for App 2023-12-21 14:17:35 -08:00
Jonathan Johnson
a10c250683
Enabling wayland-csd-adwaita by default 2023-12-21 09:56:17 -08:00
Jonathan Johnson
36a413865b
Adding a changelog 2023-12-20 11:17:14 -08:00
Jonathan Johnson
de899cf546
Removed UnwindSafe bounds
After thinking about this more and more, I've come to realize that
forcing UnwindSafe is not the intention of the bound on catch_unwind.
This should have been evident to me by the fact that thread::spawn does
not require UnwindSafe, yet it catches panics. The key qualifier I wasn't
noticing was that the design of the trait is to prevent *easily*
observing invariant states.

Since this panic catch results in dropping and then subsequently closing
everything that was passed to it, it fits the same general shape as
thread::spawn, so I'm removing the bounds.
2023-12-20 11:10:24 -08:00
Jonathan Johnson
ebcff2bb4f
Releasing v0.1.1 2023-12-18 17:03:13 -08:00
Jonathan Johnson
1f475626cf
Fixing compilation on Windows 2023-12-18 17:02:26 -08:00
Jonathan Johnson
c036093bee
Updating readme 2023-12-18 09:41:52 -08:00
Jonathan Johnson
125e9f7c46
Updating winit
Discovered the rwh feature flags
2023-11-20 06:20:20 -08:00
Jonathan Johnson
bde351f2b4
Removing wayland-csd-adwaita by default
This includes an entire rendering library (tiny-skia)
2023-11-19 15:57:17 -08:00
Jonathan Johnson
5ed0d923de
Merge pull request #3 from ModProg/app_name
Add app_name to WindowAttributes
2023-11-10 16:35:00 -08:00
Roland Fredenhagen
bcbbb7810e
Add app_name to WindowAttributes 2023-11-11 01:29:24 +01:00
Jonathan Johnson
043bfe2c78
Added min/max window size 2023-11-02 14:32:32 -07:00
Jonathan Johnson
91c540c2a2
Pinning winit until wgpu updates 2023-10-25 08:23:13 -07:00
Jonathan Johnson
665107f59b
Requerying the inner window for the new size 2023-10-17 09:45:04 -07:00