kennylevinsen/wldash

toggle-visible doesn't repaint the window fully

Closed this issue · 3 comments

Mel34 commented

image

Steps to reproduce: wldash toggle-visible a few times on different screens, eventually parts go 'invisible' as seen in the screenshot

Could you try again on master? Should work now.

Mel34 commented

Just as heads up I can't build it with --features=bc anymore. If I build it with without --features=bc it doesn't trigger the toggle-visible bug anymore.

~/Downloads/PKG ▶ git clone https://github.com/kennylevinsen/wldash.git
Cloning into 'wldash'...
remote: Enumerating objects: 219, done.
remote: Counting objects: 100% (219/219), done.
remote: Compressing objects: 100% (143/143), done.
remote: Total 517 (delta 149), reused 143 (delta 76), pack-reused 298
Receiving objects: 100% (517/517), 4.69 MiB | 4.20 MiB/s, done.
Resolving deltas: 100% (333/333), done.
~/Downloads/PKG ▶ cd wldash
~/Downloads/PKG/wldash ▶ cargo build --release --features=bc
   Compiling cc v1.0.38
   Compiling proc-macro2 v0.4.30
   Compiling unicode-xid v0.1.0
   Compiling autocfg v0.1.5
   Compiling libc v0.2.60
   Compiling bitflags v1.1.0
   Compiling byteorder v1.3.2
   Compiling nix v0.14.1
   Compiling xml-rs v0.8.0
   Compiling syn v0.15.44
   Compiling arrayvec v0.4.11
   Compiling void v1.0.2
   Compiling cfg-if v0.1.9
   Compiling ucd-trie v0.1.2
   Compiling lazy_static v1.3.0
   Compiling num-bigint v0.2.2
   Compiling pkg-config v0.3.15
   Compiling maplit v1.0.2
   Compiling nodrop v0.1.13
   Compiling downcast-rs v1.0.4
   Compiling nix v0.13.1
   Compiling same-file v1.0.5
   Compiling xdg v2.2.0
   Compiling dtoa v0.4.4
   Compiling fuzzy-matcher v0.2.1
   Compiling num-traits v0.2.8
   Compiling num-integer v0.1.41
   Compiling num-complex v0.2.3
   Compiling num-rational v0.2.2
   Compiling pest v2.1.1
   Compiling walkdir v2.2.9
   Compiling libloading v0.5.2
   Compiling libdbus-sys v0.2.0
   Compiling libpulse-sys v1.5.0
   Compiling memmap v0.7.0
   Compiling time v0.1.42
   Compiling atty v0.2.13
   Compiling pest_meta v2.1.1
   Compiling stb_truetype v0.2.6
   Compiling ordered-float v1.0.2
   Compiling approx v0.3.2
   Compiling line_drawing v0.7.0
   Compiling quote v0.6.13
   Compiling dlib v0.4.1
   Compiling chrono v0.4.7
   Compiling rusttype v0.7.7
   Compiling wayland-scanner v0.23.5
   Compiling os_pipe v0.8.1
   Compiling dbus v0.6.5
   Compiling wayland-sys v0.23.5
   Compiling libpulse-binding v2.6.0
   Compiling andrew v0.2.1
   Compiling wayland-client v0.23.5
   Compiling wayland-protocols v0.23.5
   Compiling wayland-commons v0.23.5
   Compiling pest_generator v2.1.0
   Compiling pest_derive v2.1.0
   Compiling rcalc_lib v0.9.3
   Compiling smithay-client-toolkit v0.6.3
   Compiling wldash v0.1.0 (/home/anon/Downloads/PKG/wldash)
error[E0428]: the name `calc` is defined multiple times
   --> src/modules/launcher.rs:218:1
    |
211 | fn calc(s: &str) -> Result<String, String> {
    | ------------------------------------------ previous definition of the value `calc` here
...
218 | fn calc(s: &str) -> Result<String, String> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `calc` redefined here
    |
    = note: `calc` must be defined only once in the value namespace of this module

error: aborting due to previous error

For more information about this error, try `rustc --explain E0428`.
error: Could not compile `wldash`.

To learn more, run the command again with --verbose.

Use --no-default-features to disable default features. Due to finding a decent rust library for calculation, there is now a default calculator.