From e126c1527f52cc82d34589643541f09ec6e05120 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sat, 13 Jul 2024 12:56:45 +0100 Subject: [PATCH] Attempt Steam Menus fix as per issue 924 Ref: --- debian/changelog | 7 +++++++ fvwm/events.c | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/debian/changelog b/debian/changelog index c33fa0867..d0c6ae79e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +fvwm3 (1.1.0+ds-1+miggy2) unstable; urgency=low + + * Comment out focus/refocus relating to Motif applications. + This is an attempt to fix Steam menus. + + -- Athanasius Sat, 13 Jul 2024 12:51:44 +0100 + fvwm3 (1.1.0+ds-1+miggy) unstable; urgency=low * New upstream release. diff --git a/fvwm/events.c b/fvwm/events.c index 065cdd460..522bb55ae 100644 --- a/fvwm/events.c +++ b/fvwm/events.c @@ -2410,7 +2410,12 @@ void HandleEnterNotify(const evh_args_t *ea) * focused fvwm window. Motif apps may lose the input focus * otherwise. But do not try to refresh the focus of * applications that want to handle it themselves. */ + if (DEBUG_GLOBALLY_ACTIVE) { + fprintf(stderr, "Would call focus_force_refresh_focus(fw)\n"); + } + #if 0 focus_force_refresh_focus(fw); + #endif } else if (sf != fw) { @@ -2422,7 +2427,12 @@ void HandleEnterNotify(const evh_args_t *ea) Scr.UnknownWinFocused != None && sf != NULL && sf == Scr.StolenFocusFvwmWin) { + if (DEBUG_GLOBALLY_ACTIVE) { + fprintf(stderr, "Would call _refocus_stolen_focus_win(ea)\n"); + } + #if 0 _refocus_stolen_focus_win(ea); + #endif } /* We get an EnterNotify with mode == UnGrab when fvwm releases the * grab held during iconification. We have to ignore this, or icon