Fixed upstream (v3.38). https://gitlab.gnome.org/GNOME/gedit/issues/177 https://gitlab.gnome.org/GNOME/gedit/-/issues/188
Meanwhile, before v3.38 is released and imported, just updating get_active_window (in gedit-app.c) fixes the bug. I built gedit from source and compared before/after, it works fine. ** Bug watch added: gitlab.gnome.org/GNOME/gedit/issues #177 https://gitlab.gnome.org/GNOME/gedit/issues/177 ** Bug watch added: gitlab.gnome.org/GNOME/gedit/-/issues #188 https://gitlab.gnome.org/GNOME/gedit/-/issues/188 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gedit in Ubuntu. https://bugs.launchpad.net/bugs/1871082 Title: gedit unexpectedly opens a new window when opening a recent file (on a dual screen setup) Status in gedit package in Ubuntu: New Bug description: I've had this bug for I'd say a couple of weeks, maybe a month or two. I use a dual screen setup. If the gedit window is on my secondary (right) screen and I open a recent file, gedit does not open it in the current window and creates a new one (which is annoying and unexpected). The bug doesn't happen if gedit is on my primary (left) screen, or if the gedit window is at the edge of my secondary screen. Also, if there is a gedit window on both screens and I try to open a recent file on the secondary monitor, it will open it in the gedit window on the other (primary) screen. ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: gedit 3.36.1-1 ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27 Uname: Linux 5.4.0-21-generic x86_64 NonfreeKernelModules: wl ApportVersion: 2.20.11-0ubuntu22 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Mon Apr 6 12:40:31 2020 InstallationDate: Installed on 2016-10-27 (1256 days ago) InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2) SourcePackage: gedit UpgradeStatus: Upgraded to focal on 2019-11-09 (149 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1871082/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

