- Opens for text-input-v3 fields, terminals, launcher search, Network password, emoji picker and the password dialog; a KB pill summons it manually. - Enabled on CHASSIS=handset; CHANDRA_OSK=1|0 overrides, and it stays off under CHANDRA_TEST_CONFIG. - Work area and panel popups shrink above the keyboard so focused content stays visible. - Keys send evdev codes with Shift, Ctrl and Alt modifiers. - chandra-ctl: `screenshot [PATH]` saves a PNG without opening the editor. - Key names cover the full punctuation set and shifted symbols. - Launcher plasmoid min width drops from 60 to 36.
This commit is contained in:
1 parent
1205329abd
commit
905dab8725
21 files changed
+1335
-68
No files matched your search
@@ -217,6 +217,30 @@ fn ChandraCompositor::freeze_screen(self : ChandraCompositor) -> @renderer.Pixma
|
||||
}
|
||||
}
|
||||
|
||||
///| Capture the current screen directly to PNG bytes without opening the editor.
|
||||
pub fn ChandraCompositor::capture_png(self : ChandraCompositor) -> Bytes? {
|
||||
let full = @scene.Rect::new(0, 0, self.output_w, self.output_h)
|
||||
match self.frame_shots {
|
||||
Some(host) =>
|
||||
if (host.snapshot)() {
|
||||
let png = (host.png)(full)
|
||||
if png.length() > 0 { Some(png) } else { None }
|
||||
} else {
|
||||
None
|
||||
}
|
||||
None =>
|
||||
match self.grab_screen() {
|
||||
Some(frame) => {
|
||||
for i = 3; i < frame.data.length(); i = i + 4 {
|
||||
frame.data[i] = b'\xff'
|
||||
}
|
||||
Some(@renderer.encode_png_compressed(frame))
|
||||
}
|
||||
None => None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
///| A window's rectangle on screen with its title bar and borders (Spectacle's default).
|
||||
fn ChandraCompositor::outer_rect(self : ChandraCompositor, wid : UInt64) -> @scene.Rect? {
|
||||
match self.windows.get(wid) {
|
||||
|
||||
Reference in new issue
Block a user