projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd99d21
)
gtk: Fix setting unresizable window.
author
Cheng Zhao
<zcbenz@gmail.com>
Sun, 25 May 2014 03:44:25 +0000
(11:44 +0800)
committer
Cheng Zhao
<zcbenz@gmail.com>
Sun, 25 May 2014 03:44:25 +0000
(11:44 +0800)
atom/browser/native_window_gtk.cc
patch
|
blob
|
history
diff --git
a/atom/browser/native_window_gtk.cc
b/atom/browser/native_window_gtk.cc
index
d556276
..
ea78f5e
100644
(file)
--- a/
atom/browser/native_window_gtk.cc
+++ b/
atom/browser/native_window_gtk.cc
@@
-315,7
+315,7
@@
gfx::Size NativeWindowGtk::GetMaximumSize() {
void NativeWindowGtk::SetResizable(bool resizable) {
// Should request widget size after setting unresizable, otherwise the
// window will shrink to a very small size.
- if (!IsResizable()) {
+ if (!IsResizable()
|| !has_ever_been_shown_
) {
gint width, height;
gtk_window_get_size(window_, &width, &height);
gtk_widget_set_size_request(GTK_WIDGET(window_), width, height);