Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Question about the hidden 1x1px window and the Window menu
Question about the hidden 1x1px window and the Window menu
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Wed Dec 09, 2009 10:45 pm    Post subject: Question about the hidden 1x1px window and the Window menu

I sort-of feel like this question was answered before when I wasn't paying complete attention, but I've poked around and can't find it mentioned; apologies if I missed the discussion.

I don't usually have multiple windows open any more, so I don't usually visit the Window menu. Today, however, I did, and I was puzzled by this "NeoOffice" window listed in the menu, which I finally realized was our 1x1 pixel hidden window for the "no-windows-open-menus".

Is there perhaps a way to filter it out of the list of windows to show in the Window menu? I know the hidden window in XUL apps like Firefox doesn't show up in the window menu, but I also know that while their hidden window is similar in the general sense, the specific technical details underlying the implementations are completely different. If not, it's not spilled milk, but I did notice it today and wondered about it Wink

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed Dec 09, 2009 11:08 pm    Post subject:

I thought that I had looked at trying to filter that Windows menu item out when I was fixing this Exposé problem but since I did not post anything about the Window menu item, I will look at it again in the next week.

Patrick
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Thu Dec 10, 2009 10:56 am    Post subject:

Thanks, Patrick. That was one of the threads that I re-read and where I figured I had missed the discussion, since I tuned out a little bit once it became clear it was a 10.6-only symptom. Wink

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Thu Dec 10, 2009 12:29 pm    Post subject:

I have good news: I found the OpenOffice.org that populates the Windows menu. After some tweaking of the code, the Windows menu for the 1 x 1 pixel window will never be added.

Also, since the OpenOffice.org code never expects the Windows to not have any windows listed (on Windows and Linux menus are attached to windows so the OpenOffice.org code assumes that there must be a document window for a this menu to be displayed), I have tweaked the code to disable the second Windows menu item (i.e. the Close Window menu item) when there are no windows added to the Windows menu.

The attached screen snapshot shows what the Windows menu looks like when no document windows are open. This change is too risky for a patch but I will include it in the upcoming NeoOffice 3.0.2 Early Access release.

Patrick
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Thu Dec 10, 2009 1:10 pm    Post subject:

Looks wonderful; thanks! Glad you could disable Close Window, too Smile

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.