0

(See the end of the question for details on versions of things I'm running).

How do I ensure that windows open up below the Gnome Top Bar such that the Top Bar does not obscure the edge of the window?

I discovered this odd behavior when playing with notify-send as follows:

notify-send -u critical xxx $'yyy\nThis is a test'

I am using -u critical to force Gnome (or whatever) to not unmap the notification window to give me time to grab a screenshot using Pscr key. That screenshot is:

notify-send being obscured by Gnome Top Bar

Invoking dconf-editor causes it to be mapped underneath (in z-order terms) the Top Bar window, leading to a bad situation like this whereby I cannot even close the window because the enter image description here icon is obscured to the point where I cannot even click on it using the mouse:

dconf-editor

I tried to manually close this window by using the Windows key to get to the enter image description here icon, but it shows that the icon is not there for the dconf-editor in that view either (why? it is for my other top-level application windows, so what makes this one so special?), so I cannot even close it:

dconf-editor after Windows button

So I have to resort to killing the process from the command line using the kill command.

Perhaps the solution to Hide GNOME top bar in activities would solve, or workaround, this problem, by simply automatically hiding the window, but the answers to that question were inconclusive at the time of this writing (2019-12-13). And also How to enable Hide Top Bar Gnome Extension so that it hides the Top Bar? shows that I ran into difficulty getting that Gnome extension to work.

This seems similar to the old issue impacting Unity at How to adjust window placement in Unity, Ubuntu 14.04 based on overlapping top bar but this is specific to Gnome, so I concluded that question was irrelevant.


I'm using Ubuntu 19.10 running Gnome 3.34.1 (whatever Ubuntu uses by default):

About Ubuntu

Update 1

This is a dual monitor setup. Details of the setup are in the subsequently filed question: How to enable Hide Top Bar Gnome Extension so that it hides the Top Bar?

Update 2

Here is a screenshot of the Settings/Devices/Displays window showing two NEC 24" monitors.

enter image description here

Update 3

I did the following:

  1. Uninstalled all GNOME Shell extensions via Update 7 inside How to enable Hide Top Bar Gnome Extension so that it hides the Top Bar?
  2. Uninstalled Ubuntu packages for GNOME shells via commands like sudo apt remove gnome-shell-extension-autohidetopbar
  3. Rebooting as seemingly required by my discovery in https://askubuntu.com/a/1196222/340383 (which I still do not agree with should be required).

I now retested the notification above via:

notify-send -u critical xxx $'yyy\nThis is a test' 

And now I see that the notification window is mapped below (in the y direction) the Top Bar on the right monitor which is what I was needing in the first place:

enter image description here

Now, this isn't an answer because it doesn't explain why this is now working. I can speculate that vanadium's answer over on https://askubuntu.com/a/1196304/340383 was actually "spot on" in the sense that it forced me to wipe clean any and all GNOME extensions installed via the the GNOME Shell integration Firefox extension as referenced in Update 6 in How to enable Hide Top Bar Gnome Extension so that it hides the Top Bar? (whew!).

bgoodr
  • 1,562
  • 3
  • 20
  • 34
  • Note, I can move the window to another monitor and then manipulate it without resorting to the kill command, but the main question still stands. – bgoodr Dec 13 '19 at 15:15
  • Dual monitor setup? Include that information in your question, including the configuration. – vanadium Dec 13 '19 at 17:13
  • @vanadium See Update 1 that I added to the OP which points to the other question, which I believe answers your "including configuration" question. – bgoodr Dec 14 '19 at 22:31
  • Now that I have a workaround/fix to https://askubuntu.com/questions/1195928/how-to-enable-hide-top-bar-gnome-extension-so-that-it-hides-the-top-bar this question becomes less important to answer. – bgoodr Dec 14 '19 at 23:01
  • Add the link to your monitor set to the top of the question, because this is key to your problem. Remove one of your monitors and very likely, it will work as expected. – vanadium Dec 15 '19 at 09:40
  • @vanadium I don't know what "link to your monitor set" means – bgoodr Dec 15 '19 at 14:42
  • The lines under "Update 1" in your answer. – vanadium Dec 15 '19 at 14:44
  • Gotcha. I added Update 2 to show what the configuration is. Hopefully that is what you referred to. I will have to uninstall the GNOME extension via apt remove gnome-shell-extension-autohidetopbar and reboot and retry the notify-send command to double check that this is still an issue that is not worked around via the extension. – bgoodr Dec 15 '19 at 18:38
  • @vanadium I added Update 3 to show that is now working, and why it is working now is a still a mystery to me now. I've exhausted both us on this and the other answer, so I'm happy with letting sleeping dogs lie for now. Thanks for your help! – bgoodr Dec 15 '19 at 18:51

0 Answers0