Skip to content

Applying the blur effect then turning it off puts a dialog on top even if it is not on top #473

@ianmmyers

Description

@ianmmyers

Describe the bug
Creating a dialog that is not on top then using the command file to blur then unblur results in a dialog that is on top

To Reproduce
Steps to reproduce the behavior:
This script will reproduce the behavior


#! /bin/zsh

# open a dialog process and use a command file
/usr/local/bin/dialog \
	--title "I should not be on top" \
	--message "Drag a window over me to verify. I will sleep for a minute so you can test, then I will blur" \
	--button1disabled \
	--buton2disabled \
	--commandfile /var/tmp/command1.log & sleep 60

# open message box, not on top
/bin/echo "blurscreen: enable" >> /var/tmp/command1.log

# sleep for a few
sleep 5

# turn blur off
/bin/echo "blurscreen: disable" >> /var/tmp/command1.log

# demo that it is not on top by dragging a window over it
/bin/echo "title: I shouild not be on top but will be" >> /var/tmp/command1.log
/bin/echo "message: Try to drag a window over me to see that I am on top. Click OK to exit" >> /var/tmp/command1.log
/bin/echo "button1: enable" >> /var/tmp/command1.log

exit 0

Expected behavior
The dialog is not on top

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • macOS version 14.7.1
  • swiftDialog version 2.5.4.4793

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions