vladimiry / ElectronMail

Unofficial ProtonMail Desktop App
GNU General Public License v3.0
1.49k stars 96 forks source link

Title bar not fully displayed and crash when reopening the window under wayland #548

Open reeceyng opened 2 years ago

reeceyng commented 2 years ago

version: v5.0.2

flags: --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland

interface(black was added by me): 截图 2022-08-24 08-56-47

Flag WaylandWindowDecorations is aimed to fix title bar missing in electron. https://github.com/electron/electron/pull/29618 But it's not work on ElectronMail. Only one corner of the title bar is shown.

I tried to close and reopen it with "Toggle Window" but it was crash with errors below:

[51632:0824/092228.422620:ERROR:wayland_event_watcher.cc(36)] libwayland: wl_surface@31: error 0: gtk_shell::get_gtk_surface already requested

fish: Job 1, 'electron-mail --enable-features…' terminated by signal SIGILL (Illegal instruction)
reeceyng commented 2 years ago

Title bar was fixed in latest 5.1.0 version. But still cannot reopen it with "Toggle Window"

[8359:0827/210654.346773:ERROR:wayland_event_watcher.cc(36)] libwayland: wl_surface@32: error 0: gtk_shell::get_gtk_surface already requested

fish: Job 1, '/opt/ElectronMail/electron-mail…' terminated by signal SIGILL (Illegal instruction)