[gnome-terminal] Don't resize if the terminal is not realised
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-terminal] Don't resize if the terminal is not realised
- Date: Mon, 29 Jun 2009 12:27:43 +0000 (UTC)
commit b64e39902276e4b9e836597b906c18e3b74f7ecc
Author: Christian Persch <chpe gnome org>
Date: Mon May 18 18:50:45 2009 +0200
Don't resize if the terminal is not realised
src/terminal-window.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index d2f5c41..3098d14 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -983,6 +983,12 @@ screen_resize_window_cb (TerminalScreen *screen,
guint grid_width, grid_height;
int xpad_total, ypad_total, char_width, char_height;
+ /* Don't do anything if we're maximised or fullscreened */
+ // FIXME: realized && ... instead?
+ if (!GTK_WIDGET_REALIZED (widget) ||
+ (gdk_window_get_state (widget->window) & (GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_FULLSCREEN)) != 0)
+ return;
+
/* NOTE: width and height already include the VteTerminal's padding! */
/* Short-circuit */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]