linebender / linebender/druid

On master branch, Cmd+Q doesn't quit app, but emits warning instead

Open
#1,711 21 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug shell/mac
Dominant language
Rust
Stars
9.7k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

I recently switched from v0.7.0 to master. I recognized that Cmd+Q does not quit the app anymore. This happens not only in my project but also in the example (at least, flex example). Instead, it emits a warning every time I submit the keystroke, apparently related to OS layer:

cargo run --example flex

2021-04-10 13:37:22.456 flex[74291:7719784] +[NSView doCommandBySelector:]: unrecognized selector sent to class 0x7fff885efa08

This happens only in master. In v0.7.0, I can quit the app with Cmd+Q without any warning.

Environment

  • druid master (2c5d73c8426f90d2a1ede9fdd3b5cb7bee57f108)
  • macOS Big Sur 11.2.3 (Intel)

I can provide further environmental information if needed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run cargo run --example flex on macOS and reproduce the Cmd+Q behavior, comparing it with v0.7.0. Trace the macOS event handling reached by the flex example; done means Cmd+Q quits the app without emitting the reported warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.