Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c4876e5606 |
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ming-wm"
|
name = "ming-wm"
|
||||||
version = "1.2.2"
|
version = "1.2.3"
|
||||||
repository = "https://github.com/stjet/ming-wm"
|
repository = "https://github.com/stjet/ming-wm"
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -67,6 +67,20 @@ ming touch rotate
|
|||||||
|
|
||||||
<image alt="mobile example" src="/docs/images/mobile.png" width="50%">
|
<image alt="mobile example" src="/docs/images/mobile.png" width="50%">
|
||||||
|
|
||||||
|
### Troubleshooting
|
||||||
|
|
||||||
|
If key presses do nothing, that is, if on the lockscreen, despite key presses (physical or of the OSK), nothing happens (no asterisk characters show up), try adding the `force-stdout` arg. For example:
|
||||||
|
|
||||||
|
```
|
||||||
|
ming force-stdout
|
||||||
|
```
|
||||||
|
|
||||||
|
Or:
|
||||||
|
|
||||||
|
```
|
||||||
|
ming touch force-stdout
|
||||||
|
```
|
||||||
|
|
||||||
## Philosophy
|
## Philosophy
|
||||||
|
|
||||||
See [/docs/philosophy.md](/docs/philosophy.md) for some hopefully interesting ramblings.
|
See [/docs/philosophy.md](/docs/philosophy.md) for some hopefully interesting ramblings.
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ fn init(framebuffer: Framebuffer, framebuffer_info: FramebufferInfo) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let touch = args.contains(&"touch".to_string());
|
let touch = args.contains(&"touch".to_string());
|
||||||
|
let force_stdout = args.contains(&"force-stdout".to_string()); //write to stdout to force framebuffer redraw
|
||||||
|
|
||||||
//read touchscreen presses (hopefully)
|
//read touchscreen presses (hopefully)
|
||||||
thread::spawn(move || {
|
thread::spawn(move || {
|
||||||
@@ -152,10 +153,17 @@ fn init(framebuffer: Framebuffer, framebuffer_info: FramebufferInfo) {
|
|||||||
|
|
||||||
for message in rx {
|
for message in rx {
|
||||||
match message {
|
match message {
|
||||||
ThreadMessage::KeyChar(kc) => wm.handle_message(WindowManagerMessage::KeyChar(kc.clone())),
|
ThreadMessage::KeyChar(kc) => {
|
||||||
|
wm.handle_message(WindowManagerMessage::KeyChar(kc.clone()));
|
||||||
|
if force_stdout {
|
||||||
|
println!(" "); //without any stdout, on some user's devices, for some reason the framebuffer doesn't get redrawn to the screen
|
||||||
|
}
|
||||||
|
},
|
||||||
ThreadMessage::Touch(x, y) => {
|
ThreadMessage::Touch(x, y) => {
|
||||||
wm.handle_message(WindowManagerMessage::Touch(x, y));
|
wm.handle_message(WindowManagerMessage::Touch(x, y));
|
||||||
|
if force_stdout {
|
||||||
println!(" "); //without any stdout, on my phone, for some reason the framebuffer doesn't get redrawn to the screen
|
println!(" "); //without any stdout, on my phone, for some reason the framebuffer doesn't get redrawn to the screen
|
||||||
|
}
|
||||||
},
|
},
|
||||||
ThreadMessage::Clear => {
|
ThreadMessage::Clear => {
|
||||||
write!(stdout.stdout, "{}", CLEAR_ALL).unwrap();
|
write!(stdout.stdout, "{}", CLEAR_ALL).unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user