diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-11-15 12:12:02 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-11-15 12:12:23 +0100 |
commit | ca245e4aca91747ed6a13a5343ef786d9bf034cb (patch) | |
tree | f4e397f8a8a10dd8ac9c62f580553c0e65bc85a9 /prototypes | |
parent | c3905349b05bdb1adace7fe8dd20e805724962bc (diff) | |
download | haven-ca245e4aca91747ed6a13a5343ef786d9bf034cb.tar.gz haven-ca245e4aca91747ed6a13a5343ef786d9bf034cb.tar.xz haven-ca245e4aca91747ed6a13a5343ef786d9bf034cb.zip |
xgb-image: fix visual searching
Diffstat (limited to 'prototypes')
-rw-r--r-- | prototypes/xgb-image.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/prototypes/xgb-image.go b/prototypes/xgb-image.go index b8bf145..e93fe60 100644 --- a/prototypes/xgb-image.go +++ b/prototypes/xgb-image.go @@ -115,6 +115,7 @@ func main() { // XXX: We don't /need/ alpha here, it's just a minor improvement--affects // the backpixel value. (And we reject it in 30-bit depth anyway.) +Depths: for _, i := range screen.AllowedDepths { for _, v := range i.Visuals { // TODO: Could/should check other parameters, e.g., the RGB masks. @@ -124,7 +125,7 @@ func main() { if i.Depth == 32 || i.Depth == 30 && prefer30 { visual, depth = v.VisualId, i.Depth if !prefer30 || i.Depth == 30 { - break + break Depths } } } |