Comments (17)
Thank you for reporting!
Though I will have difficulties debugging this since I don't use wayland :(
from gnome-shell-extension-clipboard-indicator.
Though I will have difficulties debugging this since I don't use wayland :(
Point me to the lines which are reading the clipboard, I'll see what I can find.
from gnome-shell-extension-clipboard-indicator.
https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator/blob/master/extension.js#L247
This function is invoked every couple of seconds, and checks if the clipboard has updated.
from gnome-shell-extension-clipboard-indicator.
So, it seems that the "clipboard.get_text" function by itself is causing the lag.
from gnome-shell-extension-clipboard-indicator.
Does your shell freeze every second? Or only when you copy something?
from gnome-shell-extension-clipboard-indicator.
Every second.
from gnome-shell-extension-clipboard-indicator.
I'm on Arch which includes GNOME 3.20 in the stock packages now. I tried Wayland today given it is just a simple option on the GDM login window and found everything in my environment seems to work fine except this extension causes gnome-shell to use excessive CPU. This is very easy to see by bringing up a terminal window and running htop while I switch the extension on and off via tweak tool. Doing the same thing under standard Xorg shows no such problem, nor does switching off/on any of my other extensions.
from gnome-shell-extension-clipboard-indicator.
@bulletmark - do you have the same freezing issue as described above, or only the high-cpu?
I must admit I forgot about this issue. :P
I'll try and take a look in the next few days.
from gnome-shell-extension-clipboard-indicator.
Under Wayland, htop shows gnome-shell using about 1% CPU in the quiescent state with little happening. Enable this extension and gnome-shell settles to 10% CPU. Disable it and it settles back to 1% .. etc. Doing the same sequence under Xorg gnome-shell stays at the 1% whether the extension is enabled or not. I had noticed that gnome-shell was laggy which is why I went looking for this issue.
from gnome-shell-extension-clipboard-indicator.
OK, thanks. There's of course the chance that this is an issue with Gnome and not the extension (the Wayland implementation is still not completely stable). I will investigate it further and will update in here.
from gnome-shell-extension-clipboard-indicator.
This got fixed in the newest version of GNOME/Gtk :)
from gnome-shell-extension-clipboard-indicator.
Thanks for the update @cra0zy ! :)
@bulletmark - might this be resolved for you as well now?
from gnome-shell-extension-clipboard-indicator.
@Tudmotu I am running up to date Arch and just switched back to Wayland to check this but it is still the same.
PS: later edit: At the time I made this comment Arch was running gnome-shell version 3.20.2.
from gnome-shell-extension-clipboard-indicator.
I can confirm this still happens under Wayland. I'm running gnome-shell 3.22 under Opensuse Tumbleweed.
from gnome-shell-extension-clipboard-indicator.
Stock Arch updated gnome-shell from 3.20.4 to to 3.22.1 today and I don't see this problem anymore under Wayland.
from gnome-shell-extension-clipboard-indicator.
gnome-shell 3.22.1 mentions in its changelog:
Fix feedback loop between StClipboard and X11 bridge
which seems directly relevant to the issue.
I'll update once this new version hits Tumbleweed, which could take some days.
from gnome-shell-extension-clipboard-indicator.
I can confirm, gnome-shell 3.22.1 fixes this issue.
from gnome-shell-extension-clipboard-indicator.
Related Issues (20)
- Features to hide icons in the top bar HOT 1
- Popup Placement when no indicator is there HOT 3
- Paste button pastes the contents of the clipboard in place of the selected item in the history
- [BUG] pop up notification no working. HOT 6
- Shortcuts HOT 8
- image support doesn´t work HOT 1
- Doesn't work due to clipboard entry parsing HOT 10
- Unhandled promise rejection. To suppress this warning ..
- Encoding problems HOT 4
- RCE vulnerability when copying full system paths HOT 16
- "Copied to clipboard" notification appears every time I copy anything, with no option to disable it HOT 1
- [BUG]: Unhandled promise rejection HOT 7
- "Text will be here" is displayed in the tray and nothing happens by clicking on it. HOT 22
- Lag - Delay HOT 5
- Suggestion: make it work as Win+V on windows HOT 2
- [BUG] In-menu keyboard controls do not work HOT 2
- Scroll Bar is Inaccessible To Mouse HOT 1
- shows sensitive information on next and previous entries HOT 2
- Non-Latin characters doesn't work HOT 2
- History clears on screenlock HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnome-shell-extension-clipboard-indicator.