From 6957f9469ca0503088abda4d55df59e26339afa9 Mon Sep 17 00:00:00 2001 From: Yuuki Harano Date: Thu, 18 Jul 2019 19:42:02 +0900 Subject: [PATCH] Add PGTK support for fullscreen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * src/gtkutil.c (x_wm_set_size_hint): Fullscreen support for PGTK fullscreen にできるようにした。 --- src/gtkutil.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gtkutil.c b/src/gtkutil.c index 2da6beb2ca5..6c2691ecd99 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -1617,17 +1617,18 @@ x_wm_set_size_hint (struct frame *f, long int flags, bool user_position) XSETFRAME (frame, f); fs_state = Fframe_parameter (frame, Qfullscreen); + if ((EQ (fs_state, Qmaximized) || EQ (fs_state, Qfullboth)) #ifndef HAVE_PGTK - if ((EQ (fs_state, Qmaximized) || EQ (fs_state, Qfullboth)) && - (x_wm_supports (f, FRAME_DISPLAY_INFO (f)->Xatom_net_wm_state) || - x_wm_supports (f, FRAME_DISPLAY_INFO (f)->Xatom_net_wm_state_fullscreen))) + && (x_wm_supports (f, FRAME_DISPLAY_INFO (f)->Xatom_net_wm_state) || + x_wm_supports (f, FRAME_DISPLAY_INFO (f)->Xatom_net_wm_state_fullscreen)) +#endif + ) { /* Don't set hints when maximized or fullscreen. Apparently KWin and Gtk3 don't get along and the frame shrinks (!). */ return; } -#endif if (flags) { -- 2.39.5