Re-wrap the four over-long lines the shell's review named
CHANGELOG.md (the shell's entry), docs/ui.md (the maximized paragraph), docs/design/gpui-spikes.md (the status paragraph) and the module doc of voelin-gpui's app.rs: prose only, no word changed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
870eb5d938
commit
6b8f933ece
4 files changed
+18
-16
No files matched your search
+5
-4
@@ -31,10 +31,11 @@ User-visible changes of the apps and the `tsgw` gateway. The format follows
|
||||
sound, hold to talk and copy an invite link, as in the Slint app; the window's
|
||||
title names the server on screen, and its size and whether it was maximized
|
||||
are kept for the next run (setting `ui.window`; on X11 the window is
|
||||
maximized once it is shown, not before the window manager has it). The channel tree, the chat and the other pages are the
|
||||
next slices; the search and the settings buttons only log that. `VOELIN_DEMO_UI=1`
|
||||
shows the Slint app's sample servers without sending or keeping anything
|
||||
(docs/ui.md, "The desktop shell").
|
||||
maximized once it is shown, not before the window manager has it). The
|
||||
channel tree, the chat and the other pages are the next slices; the search
|
||||
and the settings buttons only log that. `VOELIN_DEMO_UI=1` shows the Slint
|
||||
app's sample servers without sending or keeping anything (docs/ui.md, "The
|
||||
desktop shell").
|
||||
- Log files: each run logs to `<state>/voelin/logs/voelin.log`, the previous
|
||||
four runs are kept; `VOELIN_LOG` sets what is logged. Settings → Advanced
|
||||
opens the folder.
|
||||
|
||||
@@ -25,8 +25,9 @@
|
||||
//! transition asks for besides the state (`Update`) is carried out as far as
|
||||
//! this front end has the parts: the engine's commands go out, the status line
|
||||
//! is set, what is to be kept goes to the store, a setting the theme follows
|
||||
//! is applied and the warnings are logged; the redraw flags, the notices, the pictures to decode and the
|
||||
//! streams' capture and decoder are for the slices that have those parts.
|
||||
//! is applied and the warnings are logged; the redraw flags, the notices, the
|
||||
//! pictures to decode and the streams' capture and decoder are for the slices
|
||||
//! that have those parts.
|
||||
|
||||
use std::task::Poll;
|
||||
use std::time::Duration;
|
||||
@@ -186,7 +187,6 @@ struct WindowKeeper {
|
||||
opening_reports: u8,
|
||||
}
|
||||
|
||||
/// Give up the foreground thread once, so that GPUI's executor runs what is
|
||||
/// How many windowed reports of a window opened to be maximized are taken to
|
||||
/// be the place it opened with, not the user's: the first is the window's
|
||||
/// own at its creation, the second the configure an X11 window manager may
|
||||
@@ -195,6 +195,7 @@ struct WindowKeeper {
|
||||
/// (a tiling one never does).
|
||||
pub const OPENING_REPORTS: u8 = 2;
|
||||
|
||||
/// Give up the foreground thread once, so that GPUI's executor runs what is
|
||||
/// queued before this task goes on.
|
||||
async fn yield_now() {
|
||||
let mut yielded = false;
|
||||
@@ -1578,7 +1579,6 @@ mod tests {
|
||||
assert_eq!(kept(cx), WindowState { maximized: true, ..restored });
|
||||
}
|
||||
|
||||
/// A window that was not opened maximized keeps what it reports from the
|
||||
/// The guard of a window opened to be maximized is for its first reports
|
||||
/// only: after them what the window reports is the user's even if it was
|
||||
/// never seen maximized (a window manager that does not maximize, a user
|
||||
@@ -1613,6 +1613,7 @@ mod tests {
|
||||
assert_eq!(kept(cx), resized);
|
||||
}
|
||||
|
||||
/// A window that was not opened maximized keeps what it reports from the
|
||||
/// first report on.
|
||||
#[gpui::test]
|
||||
fn a_window_not_opened_maximized_is_kept_from_its_first_report(cx: &mut TestAppContext) {
|
||||
|
||||
@@ -39,10 +39,10 @@ desktop shell, is slice 1 of the step's list and landed on `phase5/gpui-shell`
|
||||
UI's keys, the secrets, the default identity), the server rail, the sidebar,
|
||||
the top bar and the main area as entities that tell the window when what they
|
||||
show changed (the window then draws every part: gpui-pre 0.3.10 renders every
|
||||
uncached child view on every frame), the eleven callbacks of `bind/servers.rs` as actions through
|
||||
`voelin-ui-vm`'s logic and the engine's commands, the window's size and
|
||||
position kept in `ui.window`, the engine-event task in steps and a tick that
|
||||
draws nothing. What it shows, what it costs idle and what it leaves to the
|
||||
uncached child view on every frame), the eleven callbacks of `bind/servers.rs`
|
||||
as actions through `voelin-ui-vm`'s logic and the engine's commands, the
|
||||
window's size and position kept in `ui.window`, the engine-event task in steps
|
||||
and a tick that draws nothing. What it shows, what it costs idle and what it leaves to the
|
||||
slices after it are in docs/ui.md, "The desktop shell"; the next slice is the
|
||||
channel tree and the members. The shell was reviewed and gated the same day (an
|
||||
Opus gate: no blocker and no major, six minors), and the minors are closed on
|
||||
|
||||
+4
-4
@@ -1290,10 +1290,10 @@ managers, places new windows itself; Wayland tells no position at all, so none
|
||||
is kept there), maximized if it was. **Maximized** is asked for twice: GPUI
|
||||
asks when it creates the window (`WindowBounds::Maximized`: a Wayland
|
||||
compositor is expected to honour that, which was not run here), and the window
|
||||
asks again when its first frame is drawn if it is not maximized by then (`MainView`: `Window::zoom_window`, which
|
||||
toggles on X11, hence the check), because an X11 window manager manages a window
|
||||
only from its map, so the early request is lost (openbox: the window opened at
|
||||
its restored size). The first two windowed reports of a window opened to be
|
||||
asks again when its first frame is drawn if it is not maximized by then
|
||||
(`MainView`: `Window::zoom_window`, which toggles on X11, hence the check),
|
||||
because an X11 window manager manages a window only from its map, so the early
|
||||
request is lost (openbox: the window opened at its restored size). The first two windowed reports of a window opened to be
|
||||
maximized (the place it opened with, and the configure an X11 window manager
|
||||
may send when it maps the window) are not kept, so a run that ends before the
|
||||
window manager answers leaves `maximized: true` as it found it; the reports
|
||||
|
||||
Reference in new issue
Block a user