gtk: Window.focus should not change visibility.
This commit is contained in:
parent
eb9673a152
commit
6c36f7e5c9
1 changed files with 3 additions and 0 deletions
|
@ -88,6 +88,9 @@ void NativeWindowGtk::Move(const gfx::Rect& pos) {
|
|||
}
|
||||
|
||||
void NativeWindowGtk::Focus(bool focus) {
|
||||
if (!IsVisible())
|
||||
return;
|
||||
|
||||
if (focus)
|
||||
gtk_window_present(window_);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue