Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for bottom task bars #4

Closed
hexion opened this issue Feb 20, 2017 · 9 comments
Closed

Support for bottom task bars #4

hexion opened this issue Feb 20, 2017 · 9 comments

Comments

@hexion
Copy link

hexion commented Feb 20, 2017

The desktop dimmer window is always drawn in the upper right corner. This fits top menu bars but not menu bars placed at the bottom of the screen.

It is quite inconvenient to click on the menu icon and then go all the way up to move the bar. Support for bottom menu bars (via automatic detection if possible, or else through a configurable option) would be great.

@sidneys
Copy link
Owner

sidneys commented Feb 25, 2017

@hexion Thanks for the heads-up. However, we need more information about the environment (operating system, version) and the app (version, installation) for an assessment of the issue. Please add your "steps to reproduce". Cheers!

@hexion
Copy link
Author

hexion commented Feb 25, 2017

I'm running Ubuntu 16.04, with the gnome-flashback desktop environment.

I'm not sure right now if the menu bar is set to bottom by default, it might be at the top. To change it, press down Super+Alt+Right click on the menu bar, a menu will appear, select Properties. Then there is an option to change the layout.

As for reproducible steps, simply run the application on a system with a menu bar positioned at the bottom, and click on the app menu icon. The window with the sliding bar will appear at the top of the screen, far from the menu icon.

Thanks for looking into it.

@sidneys sidneys self-assigned this Feb 27, 2017
@sidneys sidneys added enhancement and removed bug labels Feb 27, 2017
@sidneys sidneys removed their assignment Feb 27, 2017
@sidneys sidneys self-assigned this Mar 6, 2017
@sidneys
Copy link
Owner

sidneys commented Mar 6, 2017

@hexion
This issue was recently resolved, but only tested on Windows. Please test and share your findings.

@sidneys sidneys changed the title Suppor for bottom menu bars Support for bottom task bars Mar 6, 2017
@hexion
Copy link
Author

hexion commented Mar 6, 2017

Clicking on the icon will now cause a stack trace:

Uncaught Exception:
TypeError: Cannot read property 'substr' of undefined
at showWindow (/opt/Desktop Dimmer/resources/app.asar/node_modules/menubar/index.js:150:76)
at Tray.clicked (/opt/Desktop Dimmer/resources/app.asar/node_modules/menubar/index.js:101:7)
at emitTwo (events.js:106:13)
at Tray.emit (events.js:191:7)

Hope that helps

@sidneys
Copy link
Owner

sidneys commented Mar 7, 2017

@hexion
Thanks for the detailed logs. We tried a new approach which contains a workaround for the menu positioning issues, which is a upstream Electron issue (limited functional support for Linux task bars).

Can you please test & share your findings from the latest release v2.8.8?
Cheers.

@hexion
Copy link
Author

hexion commented Mar 7, 2017

Same stack trace upon click with version 2.8.8:

Uncaught Exception:
TypeError: Cannot read property 'substr' of undefined
at showWindow (/opt/Desktop Dimmer/resources/app.asar/node_modules/menubar/index.js:150:76)
at Tray.clicked (/opt/Desktop Dimmer/resources/app.asar/node_modules/menubar/index.js:101:7)
at emitTwo (events.js:106:13)
at Tray.emit (events.js:191:7)

Btw, I noticed this other enhancement request:
#8

IMHO, that would indirectly solve this issue. Sure, the app wouldn't automatically detect bottom task bars, but the user could just place it wherever he likes and as long as the window is drawn at the newly saved location, it would all be fine.

@sidneys
Copy link
Owner

sidneys commented Mar 7, 2017

@hexion
Thanks for the quick test iterations. New version with changed menubar module is available: v2.9.0
Keep the reports coming, this really is not reproducible on our testbed running Ubuntu 16.10 /w Unity 7

@hexion
Copy link
Author

hexion commented Mar 8, 2017

No problem. With 2.9.0 there are no crashes. The popup window now has moved a bit to the left. It now shows up at the right top of the screen with an offset of about 200px to the left.

This may help. There is a command that can retrieve certain values for gnome-panel so, in environments that use it, will tell you where it is in the screen.

$ dconf read /org/gnome/gnome-panel/layout/toplevels/top-panel/orientation
'bottom'
$ dconf read /org/gnome/gnome-panel/layout/toplevels/top-panel/size
24
$ dconf read /org/gnome/gnome-panel/layout/toplevels/top-panel/y
1056

The last 2 values are in pixels.

@sidneys
Copy link
Owner

sidneys commented Nov 13, 2017

Thanks for your reports. As the issue has been resolved, i'm closing this issue.

Please feel free to open a new issue if the issue should reoccur.

Cheers,
S

@sidneys sidneys closed this as completed Nov 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants