Show overlay as a window on top (override redirect and always on top) instead of a child window and capture window and render that

This commit is contained in:
dec05eba
2022-03-31 17:29:32 +02:00
parent 2aea0635f4
commit 663a36df4a
4 changed files with 81 additions and 83 deletions

View File

@@ -71,6 +71,12 @@ namespace gsr {
rect.set_color(border_color);
window.draw(rect);
}
} else {
// Background
mgl::Rectangle rect(size);
rect.set_position(position);
rect.set_color(mgl::Color(20, 20, 20, 225));
window.draw(rect);
}
}
}