mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-30 12:14:10 +01:00
chore(repo): combine the candidate 8 draft with the KDE clippy fixes
Candidate 8: the second draft (cand7 + pointer-picks-monitor + thin-events note + bar wgpu fallback + macOS deep dedup + kfw's PlatformMonitorId/promote hook + the nix fmt/deny fixes) merged with wip-u-kdeclippy (two KDE clippy fixes). Textually clean.
This commit is contained in:
commit
6686273bee
2 files changed
+4
-5
No files matched your search
@@ -1312,9 +1312,9 @@ mod tests {
|
||||
// the editor goes to the second workspace before the monitor is switched to it
|
||||
let monitor = backend.monitors().unwrap()[0].id;
|
||||
backend.set_window_workspace(1.into(), 1).unwrap();
|
||||
backend.switch_workspace(monitor.into(), 1).unwrap();
|
||||
backend.switch_workspace(monitor, 1).unwrap();
|
||||
assert_eq!(backend.window_workspace(1.into()).unwrap(), Some(1));
|
||||
assert_eq!(backend.current_workspaces().unwrap(), [(monitor.into(), 1)]);
|
||||
assert_eq!(backend.current_workspaces().unwrap(), [(monitor, 1)]);
|
||||
},
|
||||
|backend| {
|
||||
// 51 of 255 is a fifth
|
||||
@@ -1509,8 +1509,7 @@ mod tests {
|
||||
.handle(&events[0], Instant::now());
|
||||
let monitor = backend.monitors().unwrap()[0].id;
|
||||
|
||||
let missing =
|
||||
backend.set_wallpaper(monitor.into(), std::path::Path::new("/nonexistent/a.png"));
|
||||
let missing = backend.set_wallpaper(monitor, std::path::Path::new("/nonexistent/a.png"));
|
||||
assert!(missing.unwrap_err().to_string().contains("is not a file"));
|
||||
assert!(backend.shared.wallpapers.lock().is_empty());
|
||||
}
|
||||
|
||||
@@ -453,7 +453,7 @@ impl WindowManager {
|
||||
}
|
||||
|
||||
/// Replaces the running configuration with the one in the file
|
||||
pub fn replace_configuration(&mut self, config: &std::path::PathBuf) -> eyre::Result<()> {
|
||||
pub fn replace_configuration(&mut self, config: &std::path::Path) -> eyre::Result<()> {
|
||||
// Check that this is a valid static config file first
|
||||
if StaticConfig::read(config).is_ok() {
|
||||
// Clear workspace rules; these will need to be replaced
|
||||
|
||||
Reference in new issue
Block a user