Need to look into window frames

This commit is contained in:
Timmy Xiao authored and Wez Furlong committed 2024-02-03 14:54:45 -07:00
1 parent 4ce398bc19
commit 3496aff490
1 file changed
+8 -12
+8 -12
View File
@@ -157,16 +157,6 @@ impl WaylandWindow {
.events
.assign_window(window_handle.clone());
// window.set_decorate(if decorations == WindowDecorations::NONE {
// Decorations::None
// } else if decorations == WindowDecorations::default() {
// Decorations::FollowServer
// } else {
// // SCTK/Wayland don't allow more nuance than "decorations are hidden",
// // so if we have a mixture of things, then we need to force our
// // client side decoration rendering.
// Decorations::ClientSide
// });
conn.windows.borrow_mut().insert(window_id, inner.clone());
wait_configure.recv().await?;
@@ -323,7 +313,6 @@ pub struct WaylandWindowInner {
impl WaylandWindowInner {
fn show(&mut self) {
// TODO: Need to implement show
log::trace!("WaylandWindowInner show: {:?}", self.window);
if self.window.is_none() {
return;
@@ -332,6 +321,13 @@ impl WaylandWindowInner {
self.do_paint().unwrap();
}
fn refresh_frame(&mut self) {
if let Some(window) = self.window.as_mut() {
// window.refresh();
// window.surface().commit();
}
}
fn enable_opengl(&mut self) -> anyhow::Result<Rc<glium::backend::Context>> {
let wayland_conn = Connection::get().unwrap().wayland();
let mut wegl_surface = None;
@@ -514,7 +510,7 @@ impl WaylandWindowInner {
self.invalidated = true;
return;
}
// TODO: self.do_paint().unwrap();
self.do_paint().unwrap();
}
fn set_title(&mut self, title: String) {