Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Menu bar doen't work after minimizing #84

Closed
andreasrasholm opened this Issue · 8 comments

3 participants

@andreasrasholm

I'm running FocusWriter 1.3.5.1 on Ubuntu 12.04. I really enjoy FocusWriter but I'm experiencing this rather weird bug:

When I open Focuswriter everything works as it should, when i minimize and maximize it once some of the menus in the menu bar aren't working (usually Tools and Settings), when I minimize and maximize one more time non of the menus are working, so when i click File, Edit, Format, Tools, Settings or Help nothing happens. I've noticed that the menus in fact does open, they're just invisible so when, for example, I click Help and then click a bit below I see the About screen - but I don't see the actual menu.

The behavior is consistent when i repeat the actions, that is minimize/maximize twice - then the menus I click simply don't drop down. I can get around some of it by adding most of the functions I need to the tool bars that's always working, but some functions, like switching between sessions, gets complicated.

I'vet tried reinstalling Focuswriter, resetting Unity with the command 'unity --reset' and resetting all setting with: 'rm -rf .compiz* .gconf* .config/dconf/ .config/compiz*' - none of which changed anything.

@gottcode
Owner

When I open Focuswriter everything works as it should, when i minimize and maximize it once some of the menus in the menu bar aren't working (usually Tools and Settings), when I minimize and maximize one more time non of the menus are working, so when i click File, Edit, Format, Tools, Settings or Help nothing happens. I've noticed that the menus in fact does open, they're just invisible so when, for example, I click Help and then click a bit below I see the About screen - but I don't see the actual menu.

That is really strange. Do any other Qt programs exhibit unusual behavior with their menus? FocusWriter doesn't draw the menus itself, and I'm really puzzled by how this could be occuring. Unfortunately, I have not been able to recreate this in either my 32-bit or 64-bit installs of Ubuntu 12.04.

I'vet tried reinstalling Focuswriter, resetting Unity with the command 'unity --reset' and resetting all setting with: 'rm -rf .compiz* .gconf* .config/dconf/ .config/compiz*' - none of which changed anything.

Have you tried with fresh FocusWriter settings by moving ~/.local/share/focuswriter and ~/.config/GottCode/FocusWriter.conf to somewhere else?

@andreasrasholm

Thanks for you reply!

Tried moving the settings files but that doesn't fix it.

Didn't have any other Qt programs (that I know of) so installed Connectagram and Avidemux and their menus work as they should. Noticed that these two programs had dark grey menus as my other programs in accordance with my desktop theme while the menus in FocusWriter (when I can see them) are light grey like the toolbar in the program. So could it be some kind of clash between the FocusWriter menu bar and Unity's global menu bar?

@gottcode
Owner

It's possible. I had to force the menus out of the global menu bar and back into the program because otherwise you wouldn't be able to see the menus when the program is fullscreen (and since that is the way FocusWriter is intended to be run, that would be not good).

@andreasrasholm

I see. Just tried logging into Unity 2D and then everything works as it should so the problem has to do with the integrating in Unity 3D ...

@gottcode
Owner

Interesting. The bug is now happening for me consistently, so that makes it much easier to debug.

@gottcode
Owner

After writing a quick program that only has a menubar inside of the app I have determined that this is a bug in either Qt or Unity 3D and that it first showed up in Ubuntu 11.10. Unfortunately, there isn't anything I can do to fix it inside of FocusWriter. Sorry.

@gottcode gottcode closed this
@daschuer

A possible fix can be found here: https://bugs.launchpad.net/mixxx/+bug/1076789

@gottcode
Owner

I'm not sure how that fix would apply to FocusWriter. I don't call setNativeMenuBar(), I instead set the attribute Qt::AA_DontUseNativeMenuBar on the QApplication before I create the main window (and therefore, before the QMenuBar object is created).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.