From 6dac214ccdaf467ba26c87b4f94f23e4e8ed97c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Wed, 14 Feb 2007 07:28:47 +0000 Subject: [PATCH] (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN. --- src/ChangeLog | 4 ++++ src/xterm.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 4b0de7b4501..b0432d602e0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-02-14 Jan Dj,Ad(Brv + + * xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN. + 2007-02-13 YAMAMOTO Mitsuharu * macfns.c (Fx_focus_frame): Move current process to foreground if diff --git a/src/xterm.c b/src/xterm.c index cf319b374d9..c4763dfb3ec 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -8426,6 +8426,11 @@ do_ewmh_fullscreen (f) { int have_net_atom = wm_supports (f, "_NET_WM_STATE"); + /* Some window managers don't say they support _NET_WM_STATE, but they do say + they support _NET_WM_STATE_FULLSCREEN. Try that also. */ + if (!have_net_atom) + have_net_atom = wm_supports (f, "_NET_WM_STATE_FULLSCREEN"); + if (have_net_atom) { Lisp_Object frame; -- 2.39.2