mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 17:27:05 +09:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user