mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-26 14:40:54 +03:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bae52eb9e7 | ||
|
|
0fbd09b07f | ||
|
|
96dd9c05a1 |
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -675,7 +675,7 @@ checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lan-mouse"
|
name = "lan-mouse"
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"env_logger",
|
"env_logger",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "lan-mouse"
|
name = "lan-mouse"
|
||||||
description = "Software KVM Switch / mouse & keyboard sharing software for Local Area Networks"
|
description = "Software KVM Switch / mouse & keyboard sharing software for Local Area Networks"
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
repository = "https://github.com/ferdinandschober/lan-mouse"
|
repository = "https://github.com/ferdinandschober/lan-mouse"
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ impl Window {
|
|||||||
let layer_surface = g.layer_shell.get_layer_surface(
|
let layer_surface = g.layer_shell.get_layer_surface(
|
||||||
&surface,
|
&surface,
|
||||||
Some(&output),
|
Some(&output),
|
||||||
Layer::Top,
|
Layer::Overlay,
|
||||||
"LAN Mouse Sharing".into(),
|
"LAN Mouse Sharing".into(),
|
||||||
qh,
|
qh,
|
||||||
(),
|
(),
|
||||||
@@ -142,8 +142,8 @@ impl Window {
|
|||||||
|
|
||||||
layer_surface.set_anchor(anchor);
|
layer_surface.set_anchor(anchor);
|
||||||
layer_surface.set_size(width, height);
|
layer_surface.set_size(width, height);
|
||||||
layer_surface.set_exclusive_zone(0);
|
layer_surface.set_exclusive_zone(-1);
|
||||||
layer_surface.set_margin(0, 0, 0, 0);
|
layer_surface.set_margin(0,0,0,0);
|
||||||
surface.set_input_region(None);
|
surface.set_input_region(None);
|
||||||
surface.commit();
|
surface.commit();
|
||||||
Window {
|
Window {
|
||||||
@@ -196,7 +196,7 @@ fn draw(f: &mut File, (width, height): (u32, u32)) {
|
|||||||
let mut buf = BufWriter::new(f);
|
let mut buf = BufWriter::new(f);
|
||||||
for _ in 0..height {
|
for _ in 0..height {
|
||||||
for _ in 0..width {
|
for _ in 0..width {
|
||||||
buf.write_all(&0x44FbF1C7u32.to_ne_bytes()).unwrap();
|
buf.write_all(&0x00000000u32.to_ne_bytes()).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user