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 7980cef8e8e62f82af842bde56e3e504fd9464e6 Author: Igor <[email protected]> Date: Fri Aug 26 13:00:47 2016 +0300 Improve handling negative x/y positions --- terminal/terminal-app.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/terminal/terminal-app.c b/terminal/terminal-app.c index 980b6eb..85b8af3 100644 --- a/terminal/terminal-app.c +++ b/terminal/terminal-app.c @@ -666,6 +666,8 @@ terminal_app_open_window (TerminalApp *app, TerminalScreen *active_terminal; gint mask = NoValue, x, y; guint width, height; + gint screen_width, screen_height; + gint window_width, window_height; #endif terminal_return_if_fail (TERMINAL_IS_APP (app)); @@ -815,7 +817,17 @@ terminal_app_open_window (TerminalApp *app, width, height); } if ((mask & XValue) && (mask & YValue)) - gtk_window_move (GTK_WINDOW (window), x, y); + { + screen = gtk_window_get_screen (GTK_WINDOW (window)); + screen_width = gdk_screen_get_width (screen); + screen_height = gdk_screen_get_height (screen); + gtk_window_get_default_size (GTK_WINDOW (window), &window_width, &window_height); + if (mask & XNegative) + x = screen_width - window_width + x; + if (mask & YNegative) + y = screen_height - window_height + y; + gtk_window_move (GTK_WINDOW (window), x, y); + } } else #else -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list [email protected] https://mail.xfce.org/mailman/listinfo/xfce4-commits
