GithubHelp home page GithubHelp logo

Comments (7)

TheKevJames avatar TheKevJames commented on August 20, 2024

Note that v27 introduced a fairly significant re-write in order to support gnome-shell v3.34 -- this issue may no longer occur.

from gnome-shell-extension-transmission-daemon.

p2004a avatar p2004a commented on August 20, 2024

This is still happening. I have Gnome 3.34.3 and this extension at version v27. It's present both on wayland and X11.

I've tried to debug this a bit, I've figured that this happens when "Always show the indicator" is false and transmission isn't running (PanelMenu is not visible).

I've tracked down that changing TransmissionDaemonIndicatorClass.hide to (add this.visible check):

if (!this._always_show && this.visible) {
    this.visible = false;
}

fixes the bug.

I've also noticed that it's not the only bug related to focus. In the not connected state the operation "click transmission indicator to show menu, click to hide it" toggles the focus of window:

  1. Window A has focus.
  2. Click indicator, menu shows up
  3. Click indicator, menu hides and windows A loses focus (under X, focus has window with id 0, checked with xprop -root _NET_ACTIVE_WINDOW)
  4. Click indicator, menu shows up
  5. Click indicator, menu shows hides and windows A (not any random window) regains focus.

This doesn't happen with any other extensions that use PanelMenu eg. OpenWeather.

Now, I have not clue about developing Gnome extensions, thus I don't know how the proper fix looks like. Above snippet looks more like a workaround to me, but I hope that this description is helpful 😉.

from gnome-shell-extension-transmission-daemon.

TheKevJames avatar TheKevJames commented on August 20, 2024

@p2004a this bug has been a nightmare-and-a-half to track down, so thank you for all your efforts! I've just submitted v28 to extensions.gnome with your suggested fix -- even if it doesn't fix the problem entirely, hopefully it improves things a bit!

Thanks for the additional debugging info as well -- that gives me a good direction to focus efforts, at least. I'll dig into the OpenWeather codebase and see if that sparks any joy ideas. If you find anything else, I'd love to hear about it!

I don't know what it is about this bug, but I've just never been able to replicate it no matter what I try. I'm sure its something simple I'm missing, but isn't that always the case...

from gnome-shell-extension-transmission-daemon.

rastersoft avatar rastersoft commented on August 20, 2024

It seems that this bug has re-appeared in Gnome Shell 3.36: If I play a video (I tested it with MPV and VLC), while in window mode everything works fine, but if I double click or press F to change to full screen mode, the window losses the focus and I must do a click to be able to continue to manage it with the keyboard.

(but I don't remember problems with Gnome Shell 3.34 or previous)

from gnome-shell-extension-transmission-daemon.

rastersoft avatar rastersoft commented on August 20, 2024

I found how to fix it. I uploaded a patch.

from gnome-shell-extension-transmission-daemon.

TheKevJames avatar TheKevJames commented on August 20, 2024

I've pushed release v29 with @rastersoft's fix (thanks again!). Hopefully this is the last of it (crossed fingers).

from gnome-shell-extension-transmission-daemon.

TheKevJames avatar TheKevJames commented on August 20, 2024

We've not received a report of this in two months -- closing this as resolved. Thanks again for contributing the various fixes here, folks!

from gnome-shell-extension-transmission-daemon.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.