forked from intel/ozone-wayland
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eduardo Lima (Etrunko)
committed
Nov 22, 2013
1 parent
9cb6674
commit d53d2e4
Showing
4 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,14 +45,13 @@ void WaylandWindow::SetShellType(ShellType type) | |
shell_surface_ = new WaylandShellSurface(this); | ||
|
||
type_ = type; | ||
|
||
switch (type_) { | ||
case TOPLEVEL: | ||
shell_surface_->UpdateShellSurface(TOPLEVEL); | ||
This comment has been minimized.
Sorry, something went wrong.
kalyankondapally
|
||
break; | ||
case MENU: | ||
shell_surface_->UpdateShellSurface(MENU); | ||
break; | ||
case FULLSCREEN: | ||
shell_surface_->UpdateShellSurface(type_); | ||
break; | ||
case TRANSIENT: | ||
case CUSTOM: | ||
NOTREACHED() << "UnSupported Shell Type."; | ||
|
@@ -81,9 +80,12 @@ void WaylandWindow::Restore() | |
NOTIMPLEMENTED(); | ||
} | ||
|
||
void WaylandWindow::SetFullscreen() | ||
void WaylandWindow::ToggleFullscreen() | ||
{ | ||
NOTIMPLEMENTED(); | ||
if (type_ == FULLSCREEN) | ||
SetShellType(TOPLEVEL); | ||
else | ||
SetShellType(FULLSCREEN); | ||
} | ||
|
||
void WaylandWindow::RealizeAcceleratedWidget() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nit: NULL should be in new line.