[gnome-terminal/gnome-3-34] window: Ignore resize if fullscreen
- From: Olivier Fourdan <ofourdan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/gnome-3-34] window: Ignore resize if fullscreen
- Date: Thu, 12 Sep 2019 07:18:21 +0000 (UTC)
commit 2cbc9e6b9be7f4d6b2d92b40e37ec687d36ce98d
Author: Olivier Fourdan <ofourdan redhat com>
Date: Wed Sep 11 17:54:21 2019 +0200
window: Ignore resize if fullscreen
The terminal update size function will not change the window size if
maximized or tiled, but does not account for fullscreen window.
As a result, if the terminal window is fullscreen, the size is updated
which cause the window to shrink because of size increments.
Make sure `terminal_window_update_size()` accounts for fullscreen state
as well and return early in that case.
https://gitlab.gnome.org/GNOME/gnome-terminal/issues/158
(cherry picked from commit b0d5d4a83fe223d419b824b191edaf05eb96b533)
src/terminal-window.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 19198f49..040fc4f4 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -2635,7 +2635,7 @@ terminal_window_update_size (TerminalWindow *window)
if (gdk_window != NULL &&
(gdk_window_get_state (gdk_window) &
- (GDK_WINDOW_STATE_MAXIMIZED | WINDOW_STATE_TILED)))
+ (GDK_WINDOW_STATE_MAXIMIZED | WINDOW_STATE_TILED | GDK_WINDOW_STATE_FULLSCREEN)))
{
/* Don't adjust the size of maximized or tiled (snapped, half-maximized)
* windows: if we do, there will be ugly gaps of up to 1 character cell
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]