T46: round 1 fixes: Ely's window never takes the keys, a panel key only if needed on macOS and on Windows a window that answers a press's activation with none; she opens with the sessions' mood; she stands 140 points in or less on a narrow pane, so she holds its edge at any width, and on Wayland, whose popup keeps the place it opened at, she opens again when a new width moves her
This commit is contained in:
7 files changed
+165
-70
No files matched your search
+6
-5
@@ -1,6 +1,4 @@
|
||||
#[cfg(target_os = "linux")]
|
||||
use gpui::{Bounds, Decorations, Pixels, Size, point};
|
||||
use gpui::{Window, WindowBackgroundAppearance};
|
||||
use gpui::{Bounds, Decorations, Pixels, Size, Window, WindowBackgroundAppearance, point};
|
||||
|
||||
use crate::settings::Settings;
|
||||
|
||||
@@ -91,8 +89,11 @@ impl Blur {
|
||||
}
|
||||
|
||||
/// The window's pane in its surface: all of it, less the inset on each free edge of a client-drawn window, as Ely's `ResizeBorder` pads it.
|
||||
#[cfg(target_os = "linux")]
|
||||
fn pane(size: Size<Pixels>, inset: Option<Pixels>, decorations: Decorations) -> Bounds<Pixels> {
|
||||
pub(crate) fn pane(
|
||||
size: Size<Pixels>,
|
||||
inset: Option<Pixels>,
|
||||
decorations: Decorations,
|
||||
) -> Bounds<Pixels> {
|
||||
let mut pane = Bounds::new(point(Pixels::ZERO, Pixels::ZERO), size);
|
||||
let (Decorations::Client { tiling }, Some(inset)) = (decorations, inset) else {
|
||||
return pane;
|
||||
|
||||
Reference in new issue
Block a user