[Xfce4-commits] [apps/xfce4-terminal] 01/01: When detaching a tab, make new window respect original geometry

noreply at xfce.org noreply at xfce.org
Tue Aug 2 11:47:57 CEST 2016


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.

commit c66bc94acf273a20f72a3eab03c237122a310d3f
Author: Igor <f2404 at yandex.ru>
Date:   Tue Aug 2 12:47:50 2016 +0300

    When detaching a tab, make new window respect original geometry
---
 terminal/terminal-app.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/terminal/terminal-app.c b/terminal/terminal-app.c
index b9f17e6..0f08061 100644
--- a/terminal/terminal-app.c
+++ b/terminal/terminal-app.c
@@ -412,6 +412,7 @@ terminal_app_new_window_with_terminal (TerminalWindow *existing,
 {
   GtkWidget *window;
   GdkScreen *screen;
+  glong      width, height;
 
   terminal_return_if_fail (TERMINAL_IS_WINDOW (existing));
   terminal_return_if_fail (TERMINAL_IS_SCREEN (terminal));
@@ -440,6 +441,10 @@ terminal_app_new_window_with_terminal (TerminalWindow *existing,
 
   terminal_window_add (TERMINAL_WINDOW (window), terminal);
 
+  /* resize new window to the original terminal geometry */
+  terminal_screen_get_size (terminal, &width, &height);
+  terminal_screen_force_resize_window (terminal, GTK_WINDOW (window), width, height);
+
   gtk_widget_show (window);
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list