Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #6 from way-cooler/hotfix/off-by-one
Browse files Browse the repository at this point in the history
Hotfix: Fixed off by one error
  • Loading branch information
Timidger authored Dec 11, 2017
2 parents 2ae00df + d94068f commit d1fc5f5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
38 changes: 19 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "wc-lock"
build = "build.rs"
version = "0.2.0"
version = "0.2.1"
authors = ["Timidger <[email protected]>"]
description = "Lockscreen program for Way Cooler"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fn main() {
let keyboard = get_keyboard(env_id, &mut event_queue);
event_queue.register::<_, MappedKeyboard<Input>>(&keyboard, input_id);
event_queue.dispatch().expect("Could not dispatch resolution");
let mut output_count = 1;
let mut output_count = 0;
for (output, resolution_id) in outputs.iter().zip(resolutions.clone()) {
// Set up `Resolution`, which ensures the lockscreen is the same
// size as the output, even if it resizes.
Expand Down

0 comments on commit d1fc5f5

Please sign in to comment.