emacs-31 6f9ac7ffdba: Fix fullscreen state handling for PGTK (Bug#81165, Bug#81320)

Martin Rudalics via Mailing list for Emacs changes <[email protected]> Thu, 2 Jul 2026 04:41:57 -0400 (EDT)
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: emacs-31
commit 6f9ac7ffdbaaf81152f38bca6194504f10bb88e8
Author: Johan Myréen <[email protected]>
Commit: Martin Rudalics <[email protected]>

    Fix fullscreen state handling for PGTK (Bug#81165, Bug#81320)
    
    * src/pgtkterm.c (set_fullscreen_state): Unfullscreen frame in
    the FULLSCREEN_HEIGHT/_WIDTH case (Bug#81165, Bug#81320).
    
    Copyright-paperwork-exempt: yes
---
 src/pgtkterm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index 757ff57a9f2..66a42b9008a 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -4483,7 +4483,8 @@ set_fullscreen_state (struct frame *f)
 
     case FULLSCREEN_WIDTH:
     case FULLSCREEN_HEIGHT:
-      /* Not supported by gtk. Ignore them. */
+      /* Restoring from fullscreen to tiled (Bug#81165, Bug#81320).  */
+      gtk_window_unfullscreen (widget);
       break;
     }