Skip to content

Commit c7af06d

Browse files
committed
extension: fix TypeError: wayland_client is null
It is non-null only when ddterm app is running.
1 parent 57298b4 commit c7af06d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ddterm/shell/extension.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ function watch_window(win) {
446446
disconnect();
447447

448448
if (win.get_client_type() === Meta.WindowClientType.WAYLAND) {
449-
if (!wayland_client.owns_window(win))
449+
if (wayland_client === null || !wayland_client.owns_window(win))
450450
return;
451451
} else if (subprocess) {
452452
if (win.get_pid().toString() !== subprocess.get_identifier())

0 commit comments

Comments
 (0)