if (!shell_surface_) {
shell_surface_ =
- WaylandDisplay::GetInstance()->GetShell()->CreateShellSurface(this, type);
+ WaylandDisplay::GetInstance()->GetShell()->CreateShellSurface(this,
+ type);
}
type_ = type;
if (!shell_surface_) {
shell_surface_ =
- WaylandDisplay::GetInstance()->GetShell()->CreateShellSurface(this, type);
+ WaylandDisplay::GetInstance()->GetShell()->CreateShellSurface(this,
+ type);
WaylandInputDevice* input = WaylandDisplay::GetInstance()->PrimaryInput();
input->SetGrabWindowHandle(handle_, 0);
}
shell_surface_->Minimize();
}
+void WaylandWindow::Show() {
+ WaylandInputDevice* input = WaylandDisplay::GetInstance()->PrimaryInput();
+ input->SetFocusWindowHandle(handle_);
+}
+
void WaylandWindow::Restore() {
// If window is created as fullscreen, we don't set/restore any window states
// like Maximize etc.