OSGeo / grass

GRASS GIS - free and open-source geospatial processing engine
https://grass.osgeo.org
Other
853 stars 310 forks source link

[Bug] Focus switches back and forth between the main GUI and map display when using the multi-window UI #2890

Open HuidaeCho opened 1 year ago

HuidaeCho commented 1 year ago

Describe the bug

I use BSPWM on Linux for windows tiling. Recently, I switched back to the multi-window UI and noticed this issue. Once I display any map in the map display, its toolbar becomes useless as focus starts switching back and forth between the main window and map display continuously (can be seen in title and focus borderline changes). I cannot even select any tool. I thought, it may be the window manager, so I tried Xfce and the same focus switch happened there as well (can be seen in title bar flickering). However, the toolbar was still usable in Xfce even with this flickering issue.

The multi-window UI used to work flawlessly in BSPWM maybe until a couple months ago when I decided to try the single-window UI.

To Reproduce Steps to reproduce the behavior:

  1. Start BSPWM or Xfce
  2. Start GRASS multi-window GUI
  3. Display any map
  4. See error (non-usable tools in BSPWM or flickering title bars in Xfce)

Expected behavior Working tools in the multi-window GUI without continuous focus switching.

Screenshots If applicable, add screenshots to help explain your problem.

System description (please complete the following information):

Additional context Add any other context about the problem here.

HuidaeCho commented 1 year ago

On mouse move, the focus changes between the two windows. When it stops moving within the map display, the title shows the main window title instead of its own title "Map Display"

petrasovaa commented 1 year ago

Do you use latest wxPython? Could you make sure this is not problem in wx, for example try using some of the wx demo examples. Other than that, you could go back to a revision several months ago and see if it works and isolate the problem that way (if the problem is in grass).

HuidaeCho commented 1 year ago

@petrasovaa I use wxPython 4.1.1. It could be the version of wxPython, but last time I upgraded it was May last year and I didn't have this issue back then. I'll try 4.2.0 and some older GRASS revisions.

FYI, I recorded this issue: Peek 2023-03-31 05-34

tmszi commented 1 year ago

I'm user of dynamic window manager such as dwm (with tilling window mode) and I have not observed any similar issue with GRASS GIS and wxPython version 4.0.7, 4.1.1, 4.2.0.