Ticket #272 (closed usability: fixed)

Opened 4 years ago

Last modified 3 years ago

Command-Q and third party window managers

Reported by: ken@… Owned by: jeremyhu@…
Priority: Nice to Have Milestone: 2.4.0
Component: xserver Version: 2.3.3 (xserver-1.4.2-apple42)
Keywords: Cc:

Description

I wrote:

When I'm using QuartzWM and hit Command-Q, a nice window pops up asking me if I'm sure I want to quit X11. When I'm using another window manager (fvwm) and accidentally hit Command-Q, all 20 of my X11 windows disappear and I end up swearing very loudly.

Is there a way to get that pop-up to appear for other window managers?

Thanks!

Then Jeremy wrote:

Hmm... possibly... essentially what happens is:

You press command-q We then check a 'can_quit' flag to determine if we have open windows:

if (can_quit
[X11App prefs_get_boolean:@PREFS_NO_QUIT_ALERT

default:NO])

return NSTerminateNow;

can_quit is initialized to true in QuartzInitInput() and is modified through the AppleWM protocol extension.

quartz-wm manages setting it to true or false based on the number of open windows. This logic can probably be changed to

initialize can_quit to false when quartz-wm starts, have it set can_quit to true

Change History

comment:1 Changed 4 years ago by jeremyhu@…

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to 2.4.0

This is in git and will be in 2.4.0-beta2

Note: See TracTickets for help on using tickets.