oae / gnome-shell-pano

Next-gen Clipboard Manager for Gnome Shell
https://extensions.gnome.org/extension/5278/pano/
GNU General Public License v2.0
1.04k stars 55 forks source link

Pano window/view closes immediately after opening when the focus is in VSCode #137

Open juarezr opened 1 year ago

juarezr commented 1 year ago

Pano window/view closes immediately after opening when the focus is in VSCode

Description

What is the bug?

Problem Explanation

Write a clear and concise description of what the bug is:

While using VSCode it's not possible to select previous items from the clipboard history in Pano.

The problem is that the Pano window/pane closes soon after showing on the screen. It closes so suddenly after opening that I can't select any items from the list to paste.

After this, the focus return to the VSCode window. If I try again, the same behavior repeats indefinitely.

Expected Behavior

A clear and concise description of what you expected to happen, and how the actual outcome differs:

Reprodution

How one can find the bug?

Steps To Reproduce

Steps to reproduce, if applicable:

  1. Copy some text anywhere to fill the Pano items
  2. Put the focus and type something in VSCode
  3. Press the gnome shortcut that triggers Pano (Default: <super> <shift> v)
  4. Just after showing the Pano window/view will close immediately
  5. One can't select any previous item in the clipboard history.
  6. Focus returns to VSCode, normally.

Details

Mark with [x] all that applies:

It happens with any application?

It happens only on one computer?

It happens only with some specific gnome configuration?

It happens only with some specific extension installed?

Diagnostics

Under what conditions does it happen?

Fill in all information that applies:

Environment

Screenshots

If applicable, add screenshots to help explain your problem:

Application Details

What is pasted, if applicable:

Application version:

$ code --version
1.74.3
97dec172d3256f8ca4bfb2143f3f76b503ca0534
x64

Output from Gnome Logs

Command: journalctl --since=now --follow /usr/bin/gnome-shell

journalctl --since=now --follow /usr/bin/gnome-shell

Pano Configuration

Command: dconf dump /org/gnome/shell/extensions/pano/

$ dconf dump /org/gnome/shell/extensions/pano/
[/]
global-shortcut=['<Super>v', '<Control><Super>v']
is-in-incognito=false
play-audio-on-copy=false
session-only-mode=true
sync-primary=false

Enabled Extensions

Command: dconf read /org/gnome/shell/enabled-extensions | tr ' ' '\n'

$ dconf read /org/gnome/shell/enabled-extensions | tr ' ' '\n'
['user-theme@gnome-shell-extensions.gcampax.github.com',
'GPaste@gnome-shell-extensions.gnome.org',
'wintile@nowsci.com',
'trayIconsReloaded@selfmade.pl',
'openweather-extension@jenslody.de',
'transparent-top-bar@ftpix.com',
'minimize-shelf@etenil',
'just-perfection-desktop@just-perfection',
'lockkeys@vaina.lt',
'mousefollowsfocus@matthes.biz',
'appindicatorsupport@rgcjonas.gmail.com',
'NotificationCounter@coolllsk',
'pano@elhan.io',
'switcher@landau.fi',
'bluetooth-quick-connect@bjarosze.gmail.com',
'advanced-alt-tab@G-dH.github.com',
'window-app-switcher-on-active-monitor@NiKnights.com',
'move-panel@lzbz.gitlab.com',
'date-menu-formatter@marcinjakubowski.github.com',
'forge@jmmaranan.com']
oae commented 1 year ago

I cannot reproduce this. Can you try disabling other extensions and check if the problem still occurs?

juarezr commented 1 year ago

Yes, I'll do soon.

kema-dev commented 1 year ago

Holy, I just encountered pretty much the same issue, but I found something unexpected.

When focusing my web browser (Brave), in full-screen, in my second screen, pano just hides out instantly after showing up. I can use arrow keys to navigate between records and paste those, but every time I press a key, pano shows up for like 0.1 sec before hiding out. Anyway, it looks like a rendering issue because I can still click on records, it would paste what is (normally) under the mouse pointer, just as expected it there was no bug at all.

I tried to record a video clip to show this behaviour, but on the clip I just do not see the same thing that happens on my screen. On the clip, everything looks fine, no bug at all. This is very weird :confused: I don't have any clue why the images rendered on my screen would be different from those rendered in the video clip...

I'm using Fedora Linux 37 (Wayland), DE GNOME 43.3, WM Mutter, WM Theme Adwaita

username0136 commented 1 year ago

My guess is that this is chromium and elctron specific issue. I'm on fedora rawhide and I don't have such issues currently, but I remember having them a week before. Maybe something GNOME broke something that mess electron and chromium focus and now they fixed it.

dlicois commented 1 year ago

When focusing my web browser (Brave), in full-screen, in my second screen, pano just hides out instantly after showing up. I can use arrow keys to navigate between records and paste those, but every time I press a key, pano shows up for like 0.1 sec before hiding out. Anyway, it looks like a rendering issue because I can still click on records, it would paste what is (normally) under the mouse pointer, just as expected it there was no bug at all.

I have the exact same behaviour with firefox or chrome on a second screen (and only on a second screen). Perhaps this is an issue with xwayland ?

kema-dev commented 1 year ago

A friend of mine experiences similar issues on Ubuntu 22, must be Wayland issues

mbeps commented 1 year ago

Hello everyone, I encounter the same problem too. It takes place on VSCode, MS Edge, Firefox and OnlyOffice when they are maximised on the secondary screen but not when they are floating. It doesn't happen on Gnome built apps. This probably means that it happens when a non-Wayland app maximised on the secondary screen. I tried maximising the same apps on my primary screen and it worked fine. Note that my 2 screens are of separate resolutions and refresh rate, I will try checking what happens if both screens use the same refresh rate and resolution.

I would say as a temporary solution, allow the user to display the clipboard on a specific screen all the time.

UPDATE: Changing the refresh rate and screen resolution had no effects.

mihalycsaba commented 1 year ago

I have the same issue, only works with gnome apps, broken on anything else. I set a shortcut for pano, it disappears instantly and I can only see the pane in overview.

laverdone commented 1 year ago

same error here.

alxckn commented 1 year ago

I have exactly the same error, on secondary screens where an app is maximized. I don't believe the issue only happens for apps that are not gnome/wayland native, I reproduce the issue with alacritty or gnome calendar

marcinbarczynski commented 1 year ago

Got the same error with Chrome on Ubuntu 22.04