Coder Social home page Coder Social logo

Comments (18)

mmstick avatar mmstick commented on July 3, 2024 2

I do also think that we need to have a border around a window indicating that it is active, as it works in i3wm.

from shell.

mmstick avatar mmstick commented on July 3, 2024 1

This should be fixed now; besides the flashing

from shell.

mmstick avatar mmstick commented on July 3, 2024

This is implemented in da05f6d. Tell me what you think. It's disabled by default, but can be enabled in the appearance options.

from shell.

leviport avatar leviport commented on July 3, 2024

I like it quite a bit, but the behavior seems a little buggy on this initial implementation. When I change to another window, the window that was previously active flashes orange before the border moves to the next window. Also if I change workspaces, it seems to stop working completely and it starts outputting these errors in the console:

pop-shell:  [INFO] focused Window(5,0) {
  name: Firefox Web Browser,
  rect: Rect(1924,4,1912,1074),
  wm_class: "Firefox",
  fork: (4,0),
}
../../../gobject/gsignal.c:2735: instance '0x55dae5ef6ae0' has no handler with id '35569'
../../../gobject/gsignal.c:2735: instance '0x55dae5ef6ae0' has no handler with id '35570'
== Stack trace for context 0x55dae24bc380 ==
#0   55dae5f4e108 i   /home/levi/.local/share/gnome-shell/extensions/[email protected]/active_hint.js:44 (7f8e12cf9b80 @ 130)
#1   55dae5f4e068 i   /home/levi/.local/share/gnome-shell/extensions/[email protected]/active_hint.js:15 (7f8e12cf99d0 @ 30)
#2   55dae5f4dfe0 i   /home/levi/.local/share/gnome-shell/extensions/[email protected]/extension.js:385 (7f8e12cdc700 @ 61)
== Stack trace for context 0x55dae24bc380 ==
#0   55dae5f4e108 i   /home/levi/.local/share/gnome-shell/extensions/[email protected]/active_hint.js:44 (7f8e12cf9b80 @ 130)
#1   55dae5f4e068 i   /home/levi/.local/share/gnome-shell/extensions/[email protected]/active_hint.js:15 (7f8e12cf99d0 @ 30)
#2   55dae5f4dfe0 i   /home/levi/.local/share/gnome-shell/extensions/[email protected]/extension.js:385 (7f8e12cdc700 @ 61)
Object Clutter.Actor (0x55dae74ecd70), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
Object St.BoxLayout (0x55dae5fe9cd0), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
JS ERROR: Error: Argument 'child' (type interface) may not be null
untrack@/home/levi/.local/share/gnome-shell/extensions/[email protected]/active_hint.js:44:13
track_window@/home/levi/.local/share/gnome-shell/extensions/[email protected]/active_hint.js:15:9
on_focused/<@/home/levi/.local/share/gnome-shell/extensions/[email protected]/extension.js:385:74

I also saw gnome shell crash once while I was using it, but I can't be certain it was because of this feature.

When I did have it running, it definitely made it faster and easier to traverse tiled windows.

from shell.

mmstick avatar mmstick commented on July 3, 2024

Seems something is occasionally destroying the box. Have yet to figure out what

from shell.

mmstick avatar mmstick commented on July 3, 2024

Issues with workspace switching are now resolved.

from shell.

leviport avatar leviport commented on July 3, 2024

I'm not sure if this is currently in-progress, but it looks like Active Hint has stopped working completely.

from shell.

mmstick avatar mmstick commented on July 3, 2024

It should still be working. If it's not, something destroyed its St.BoxLayout. Perhaps I should recreate it whenever it gets destroyed.

from shell.

leviport avatar leviport commented on July 3, 2024

I've discovered that Active Hint has only stopped working on my machine. I'll move to a clean install to continue testing, but it also seems odd that it only doesn't work on my install 🤔

from shell.

leviport avatar leviport commented on July 3, 2024

It looks like active hints sometimes to draw on top of their windows between workspace switches.

Tangentially related question: active hints disappeared forever some time ago. Even uninstalling the pop-shell extension and rebuilding didn't bring them back. Is there anything I could try to make them return? I do really like the feature.

from shell.

mmstick avatar mmstick commented on July 3, 2024

It could be that the CSS for it is not being loaded. Is the focus highlighting working for the launcher?

from shell.

leviport avatar leviport commented on July 3, 2024

Ah I think you're onto something. The blue highlight box appears, but I don't get the orange item highlight box inside of the launcher itself. Is there a way to force the CSS to reload?

from shell.

mmstick avatar mmstick commented on July 3, 2024

Try the most recent commit

from shell.

leviport avatar leviport commented on July 3, 2024

Woo, that did it! Thanks! It does still draw the orange hint box over the top of windows on workspace switching, but that's separate. I can file it as a separate issue if this one has become too chaotic.

from shell.

mmstick avatar mmstick commented on July 3, 2024

See if the overlay is fixed now

from shell.

leviport avatar leviport commented on July 3, 2024

Much better. It doesn't draw over windows anymore. It does persist on empty workspaces though.
Screenshot from 2020-03-19 15-35-08

from shell.

leviport avatar leviport commented on July 3, 2024

Ah, I may have spoke too soon. It will draw on top of a window if I close an adjacent window. In this image I had the left terminal split in two, then closed the bottom one. The hint drew over the top of the one on that side that I didn't close.
Screenshot from 2020-03-19 15-38-51

from shell.

leviport avatar leviport commented on July 3, 2024

This is implemented, so I'm going to close this issue. It's just getting crowded at this point.

from shell.

Related Issues (20)

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.