Wine window becoming transparent with an attempt to resize it

Learning that lasts. Online courses from $14.99

My wife was using Advanced Diary for journaling on a Microsoft Windows system, but wanted to transition to Linux, so I installed Ubuntu Linux and then, since there is no Linux version of Advanced Diary, I installed Advanced Diary under Wine. She wanted to adjust the size of the Advanced Diary window, but when she attempted to adjust the window size by clicking on the Restore Down icon at the top right side of the window (between the dash and the "X"), the Advanced Diary window became transparent and it was not possible to close it or adjust the size of the transparent box that appeared for the Advanced Diary window. The outline of the box can be seen below.

Transparent box

So I had to open a Terminal window to determine the process ID (PID) of the Advanced Diary process with the ps and then kill that process with the kill command. I could also have used the killall command killall AdvancedDiary.exe.

alice@Wonderland:~/Documents$ ps -aux | grep -i advanced
lisa@ad+   38180 52.7  0.1 2823612 251156 ?      Rl   11:22   1:21 C:\Program Files\Advanced Diary\AdvancedDiary.exe
lisa@ad+   38353  0.0  0.0   9464  2556 pts/2    S+   11:25   0:00 grep --color=auto -i advanced
alice@Wonderland:~/Documents$ kill -HUP 38180
alice@Wonderland:~/Documents$ 

I tried closing and opening the program several times. The behavior was consistent — the window would become transparent whenever I tried resizing or minimizing the window.

If you are using the GNOME desktop, you can use the steps below to try to resolve the problem. GNOME is the default desktop environment for Ubuntu, but you can verify it is the desktop in use by the command echo $XDG_CURRENT_DESKTOP.

alice@Wonderland:~$ echo $XDG_CURRENT_DESKTOP
ubuntu:GNOME
alice@Wonderland:~$

Steps that may resolve the problem:

  1. Run winecfg in a Terminal window.

    alice@Wonderland:~$ winecfg
    
  2. In the Wine configuration window, click on the Graphics tab.

    Wine configuration

  3. Toggle the settings for "Allow the window manager to decorate the windows" and "Allow the window manager to control the windows" one by one to see if one of those settings change the behavior. When I toggled off "Allow the window manager to decorate the windows", I now no longer saw the icons to adjust the size of the window or minimize the window at the top of the Wine window for Advanced Diary, but when I clicked where I expected them to appear, the window became transparent again. I toggled the setting back on and then toggled off the "Allow the window manager to control the windows" setting. That resolved the problem. I then closed the window and reopened Advanced Diary and toggled that setting on again, also, so that both settings were checked. I could still adjust the window size as expected. I closed and reopened the application several times and was still able to adjust the window size, so just toggling the "Allow the window manager to control the windows" setting off and then back on seemed to resolve the problem. When I queried ChatGPT about possible solutions to the problem, it had also offered other solutions to the transparent window issue under Wine.