redox-os / orbtk

The Rust UI-Toolkit.
MIT License
3.78k stars 188 forks source link

Black window after switching to another workspace and back (bspwm) #367

Open sburris0 opened 4 years ago

sburris0 commented 4 years ago

Describe the bug Running the project from orbtk-template and then switching to another workspace causes the window to turn black until it is focused again.

To Reproduce Steps to reproduce the behavior:

  1. Run orbtk-template binary
  2. On bspwm (perhaps tiling wms or any wm as well) switch to another workspace
  3. Switch back
  4. See that the window is now black
  5. Refocus the window
  6. Watch it display normally again

Expected behavior I expect the window to not become completely black when switching between workspaces

Desktop (please complete the following information):

FloVanGH commented 4 years ago

Thank you for the report. I will check it.

igotfr commented 3 years ago

same on i3wm

eternal-io commented 3 years ago

Same on windows, and it can be reproduced simply by minimizing then normalizing. I found more:

  1. The debug build's "black time" is longer than release build's.
  2. When minimized, it occupies less memory than normalized, but other lib(s?) does not (exactly, Druid).
  3. So... it seems obvious that some codes optimized the background occupancy. Maybe you can make it optional to meet some specific needs.
  4. I like this project, "add oil"~

(thanks for my habit of using example to compare the output of build [--release] when I found a new UI lib)