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

App main dialog not visible/behind other windows on Linux Xfwm4 #3867

Closed
haarp opened this issue Oct 4, 2021 · 4 comments
Closed

App main dialog not visible/behind other windows on Linux Xfwm4 #3867

haarp opened this issue Oct 4, 2021 · 4 comments
Labels
bug confirmed bug approved by the team feature: ☁️ GUI System tray icon and menu. os: 🐧 Linux

Comments

@haarp
Copy link

haarp commented Oct 4, 2021

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

The app's main dialog (the one that appears when clicking on the tray icon) is often not visible when another window (e.g. Firefox) is at the same location and focused. The dialog spawns behind the other window. The window manager (Xfwm4 from the Xfce project) has a focus stealing prevention mechanism which is relevant here. I've never seen this happen with any other app, so Nextcloud seems to be at fault here.

The fix is easy, the main dialog (and only the main dialog) should spawn with the "Always on top" setting.

Until then, as a workaround, I have added this rule to my devilspie2 config:

if ( get_application_name()=="Nextcloud" ) then
	set_window_above();
end

Expected behaviour

Dialog always visible

Actual behaviour

Dialog hidden by other windows

Steps to reproduce

  1. Use Xfwm4 as window manager (tested w/ v4.16.1)
  2. In Window Manager Tweaks, activate "Acctivate focus stealing prevention"
  3. Maximize and focus a Firefox window
  4. Click the Nextcloud tray icon
  5. -> Nextcloud dialog invisible, behind the Firefox window
  6. Click tray icon two more times
  7. Dialog disappears, reappears, is visible now

Client configuration

Client version: 3.1.3

Operating system: Gentoo Linux, Xfce4

OS language: English

Qt version used by client package (Linux only, see also Settings dialog): 5.15.2

Client package (From Nextcloud or distro) (Linux only): Distro

Thanks!

@haarp haarp added the bug label Oct 4, 2021
@FlexW FlexW added confirmed bug approved by the team feature: ☁️ GUI System tray icon and menu. os: 🐧 Linux labels Oct 4, 2021
@brtptrs
Copy link

brtptrs commented Nov 25, 2021

Testing 3.4 (3.3.81) from the Ubuntu alpha ppa:
The "main dialogue" does not show at all
Clicking on the system tray shows the options as expected and selecting the different options works, except when clicking on "Open main dialog", here nothing happens.

Ubuntu 20.04
NC 3.4.0-20211124.120120.f575cc186-1.0~focal1
Using the default Ubuntu X11 window manager

@haarp
Copy link
Author

haarp commented Nov 25, 2021

Yes, it seems even with the Devilspie always-on-top workaround, the dialog very often remains invisible. So something else must be bugged in addition.

Curiously, tooltips are shown on the invisible dialog.

@brtptrs brtptrs mentioned this issue Nov 26, 2021
31 tasks
@janvlug
Copy link

janvlug commented Nov 29, 2021

This issue seems to be related to the fact that the Main window is not a regular window. This causes several issues in Linux distributions (I am using Fedora 35 with GNOME on Wayland, and the Nextcloud client Main window has not been working properly for a long time). See also:

@haarp
Copy link
Author

haarp commented Dec 28, 2021

I'm closing this as a duplicate of #4017, which has many more upvotes, even though this issue was first.

@haarp haarp closed this as completed Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed bug approved by the team feature: ☁️ GUI System tray icon and menu. os: 🐧 Linux
Projects
None yet
Development

No branches or pull requests

4 participants