> On Jul 13, 2026, at 8:30 AM, Dan Williams <[email protected]> wrote:
> 
> There’s still an issue with the shutdown icon veto-ing exit; I haven’t yet 
> looked into how the icon drops its veto. Currently if no windows are open 
> quitting will just block waiting for the veto to be released.

I wonder if it is getting hung up by the “closing the Start Center does not 
quit LibreOffice on macOS” code which displays the Start Center’s menus when 
there are no windows open. There are calls to the macOS native vcl plugin in 
sfx2/source/app/shutdowniconaqua.mm like the following so I would guess that 
the problem is probably somewhere around the following calls in that source 
file:

[NSApp performSelector:@selector(removeFallbackMenuItem:) withObject: pDefMenu]
[NSApp performSelector:@selector(addFallbackMenuItem:) withObject: pNSMenuItem]

There are also a bunch of similar calls into the macOS native plugin for the 
Dock as well so something to looks like porting all of the NSApp custom methods 
in the macOS native plugin will eventually need to be ported to the Qt plugin.

> 
>> Hopefully my window sizing and content scaling work isn’t bumping into your 
>> work. I’ll work on getting my ugly, experimental macOS patch in 
>> https://gerrit.libreoffice.org/c/core/+/207229 into a new Gerrit patch that 
>> works with your master patches.
> 
> Saw that, I’ll take a look. I tentatively agree with Michael that best course 
> is better compartmentalizing the Mac stuff, perhaps I can help bang on that. 
> Let me think about it today…

Later today I can update Patchset 9 from 
https://gerrit.libreoffice.org/c/core/+/207229 to use your master patches if it 
helps give you an entry point. I didn’t get very far, but that patchset does 
have the “have LibreOffice scale everything by 2x when using the Qt plugin” in 
the vcl/sourc/window/windows.cxx code that mimics how Linux and Windows handle 
HiDPI.

Patrick

Reply via email to