Subject: bug#34648: 26.1; emacs-client: gpm-mouse rejected at daemon launch

From: Eli Zaretskii <[email-masked]>
Date: Mon, 25 Feb 2019 18:17:10 +0200

> Date: Mon, 25 Feb 2019 11:50:57 +0000 (UTC)
> From: Luc Pierard de Maujouy <[email-masked]>
> 
> Starting emacs daemon in console as:
> 
> emacs -u user -chdir /home/user --fg-daemon=emacs.user --debug-init
> 
> outputs:
> 
> Loading t-mouse...
> Loading t-mouse...done
> Error setting gpm-mouse-mode: (error Gpm-mouse only works in the GNU/Linux console)
> Starting Emacs daemon.
> 
> Consequently mouse won't be usable when connecting to daemon, whereas standalone emacs launched in
> console has mouse enabled.

Did you try to set gpm-mouse-mode from after-make-frame-functions
hook?