Electron apps which runs in background crashes when trying to reopen windows with error : gtk_shell::get_gtk_surface already requested
Electron apps such as discord when closed, gets in the background without a window. When they are reopened either through dash or interacting on a notification, they crashes.
The Wayland log is as follows(from the point it is closed to the point it crashes):
[3609639.535] wl_pointer@3.button(6910, 11511309, 272, 0)
[3609641.131] -> xdg_toplevel@46.destroy()
[3609641.158] -> xdg_surface@37.destroy()
blackbox: 2023-09-29T15:11:35.487Z 11 window.close win2
[3609643.184] wl_pointer@3.frame()
[3609650.308] wl_display@1.delete_id(46)
[3609650.348] wl_display@1.delete_id(37)
[3609650.358] wl_pointer@3.leave(6911, wl_surface@43)
[3609650.480] wl_pointer@3.frame()
[3609650.490] wl_keyboard@6.leave(6913, wl_surface@43)
[3609792.024] wl_surface@43.leave(wl_output@8)
[3615475.226] -> wl_surface@43.attach(nil, 0, 0)
[3615475.237] -> wl_surface@43.commit()
[3615475.240] -> xdg_wm_base@14.get_xdg_surface(new id xdg_surface@37, wl_surface@43)
[3615475.245] -> xdg_surface@37.get_toplevel(new id xdg_toplevel@46)
[3615475.249] -> xdg_toplevel@46.set_app_id("discord")
[3615475.252] -> xdg_toplevel@46.set_title("Friends - Discord")
[3615475.268] -> xdg_toplevel@46.set_min_size(984, 555)
[3615475.269] -> xdg_toplevel@46.set_max_size(2147483647, 2147483647)
[3615475.272] -> xdg_toplevel@46.unset_maximized()
[3615475.282] -> xdg_toplevel@46.set_min_size(984, 555)
[3615475.284] -> xdg_toplevel@46.set_max_size(2147483647, 2147483647)
[3615475.286] -> gtk_shell1@15.get_gtk_surface(new id gtk_surface1@38, wl_surface@43)
[3615475.289] -> wl_surface@43.commit()
[3615475.294] -> xdg_activation_v1@27.get_activation_token(new id xdg_activation_token_v1@50)
[3615475.296] -> xdg_activation_token_v1@50.set_surface(wl_surface@43)
[3615475.297] -> xdg_activation_token_v1@50.set_serial(6909, wl_seat@18)
[3615475.299] -> xdg_activation_token_v1@50.commit()
[3615478.647] wl_display@1.error(wl_surface@43, 0, "gtk_shell::get_gtk_surface already requested")
[5:0929/204141.323147:ERROR:wayland_event_watcher.cc(36)] libwayland: wl_surface@43: error 0: gtk_shell::get_gtk_surface already requested
I have observed that this doesn't occur on a KDE plasma Wayland session.
Opening this issue here because I feel it might be related to mutter. If somehow it is not, please feel free to close it.