The full-screen gnome-terminal has changed the window size after the focus switch
I'm not sure which is the root cause of the issue, I found this issue after gtk3 is upgrade in Arch Linux. so, I bisect patches of gtk from 3.24.10 to 3.24.11, this issue was not observed after revert gtk@eb71ec91.
Steps to reproduce
There have two ways to reproduce:
Multi-screen
- Open a gnome-terminal full-screen window in a screen.
- Open a firefox window in another screen.
- Move the focus from firefox window to gnome-terminal window.
Single-screen:
- Open a firefox window in maximize.
- Open a gnome-terminal and fullscreen.
- Switch to firefox window by alt + tab.
- Click firefox window once.
- Switch to gnome-terminal by alt + tab.
- Repeat steps 3-5.
Current behavior
Window size is changed
Expected outcome
Window size is unchanged
Version information
- Arch Linux (GNOME on Wayland, and X11 compatible is enabled)
- GTK 3.24.11 is bad
- GTK 3.24.10 is good
Additional information
I tried to create a simple, empty gtk window and a vte window to reproduce, I don't see any problems.
#include <gtk/gtk.h>
#include <vte/vte.h>
int
main (int argc, char *argv[])
{
GtkWidget *window;
GtkWidget *terminal;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_fullscreen (GTK_WINDOW (widget));
terminal = vte_terminal_new ();
gtk_container_add (GTK_CONTAINER (window), terminal);
gtk_widget_show_all (window);
gtk_main ();
return 0;
}