Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOTIFICATION_WM_GO_BACK_REQUEST is emitted two times per one press #101457

Open
Summersay415 opened this issue Jan 12, 2025 · 1 comment · May be fixed by #101458
Open

NOTIFICATION_WM_GO_BACK_REQUEST is emitted two times per one press #101457

Summersay415 opened this issue Jan 12, 2025 · 1 comment · May be fixed by #101458

Comments

@Summersay415
Copy link
Contributor

Summersay415 commented Jan 12, 2025

Tested versions

  • Reproducible in 4.4.dev7

System information

Godot v4.4.dev7 - Arch Linux #1 SMP PREEMPT_DYNAMIC Thu, 02 Jan 2025 22:52:26 +0000 on Wayland - X11 display driver, Multi-window, 1 monitor - OpenGL 3 (Compatibility) - Mesa Intel(R) Graphics (ADL GT2) - 12th Gen Intel(R) Core(TM) i5-1235U (12 threads)

Issue description

When pressing back button (or doing back gesture), NOTIFICATION_WM_GO_BACK_REQUEST (and go_back_requested signal on Window) emits two times instead of one.

Steps to reproduce

  1. Create script with code like this
extends Node

func _notification(what: int) -> void:
	match what:
		NOTIFICATION_WM_GO_BACK_REQUEST:
			print("go back requested")
  1. Export to Android
  2. Press back button or do back gesture
  3. Notice 2 prints per action instead of one

Minimal reproduction project (MRP)

mrp.zip

@syntaxerror247
Copy link
Member

syntaxerror247 commented Jan 12, 2025

@Summersay415 Is this a regression? have you tested with dev6 or dev5?

EDIT: Confirmed, This is a regression from #95460

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants