Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / ozone / wayland / window.cc
index 2e96e3d..c5021d3 100644 (file)
@@ -32,7 +32,8 @@ void WaylandWindow::SetShellAttributes(ShellType type) {
 
   if (!shell_surface_) {
     shell_surface_ =
-        WaylandDisplay::GetInstance()->GetShell()->CreateShellSurface(this, type);
+        WaylandDisplay::GetInstance()->GetShell()->CreateShellSurface(this,
+                                                                      type);
   }
 
   type_ = type;
@@ -47,7 +48,8 @@ void WaylandWindow::SetShellAttributes(ShellType 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);
   }
@@ -69,6 +71,11 @@ void WaylandWindow::Minimize() {
   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.