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

Focus issue in Cinnamon #4

Open
Frenzie opened this issue Oct 17, 2017 · 3 comments
Open

Focus issue in Cinnamon #4

Frenzie opened this issue Oct 17, 2017 · 3 comments
Labels

Comments

@Frenzie
Copy link
Owner

Frenzie commented Oct 17, 2017

See XCMer/fuzzy-window-switcher#32 (comment)

@sanchitbh we should probably continue our discussion here rather than littering fuzzy-window-switcher.

Also I think Nimbler has thumbnails or icons (?) which makes it more to my liking.

They're just icons (but there is an icon_size setting!). Thumbnails are pretty much just an inferior version of icons in my eyes. They need to be bigger to be useful and even then they're less distinctive. But I'm not opposed to adding them as an option as long as someone else writes it. ;-) They were actually available as an experimental feature in superswitcher. See here.

@Frenzie Frenzie added the bug label Oct 17, 2017
@Frenzie
Copy link
Owner Author

Frenzie commented Oct 18, 2017

@sanchitbh Unfortunately I'm not able to reproduce this issue. I played around with various focus settings. I figured focus follows mouse and prevent focus might have an impact, but they don't seem to. These are the defaults.

screenshot from 2017-10-18 08-24-30

@sanchitbh
Copy link

I'm using the exact same settings in Cinnamon and I tried it again but it just won't give the selected window focus (does raise it though). I'm using a dual monitor setup though I don't think that it should matter.

Is there anyway I can help debug this? My programming knowledge is pretty much limited to Perl and PHP but I'm super eager to learn new stuff and get nimbler working on my desktop!

@Frenzie
Copy link
Owner Author

Frenzie commented Oct 18, 2017

You could do a few simple checks without looking at any code. Does unplugging one monitor make a difference? (Unplugging the electricity is probably easiest.) You might have to restart in between though. Is it hard to quickly boot into a Linux Mint LiveCD/USB like I did to see if anything's different?

SInce it's Python you don't need to do any compilation. You can just edit the file and run it. I'd browse around some of the docs to see if there are any relevant-sounding methods that aren't applied yet.

http://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Window.html

Also we use a different method to show ourselves than to activate windows: http://lazka.github.io/pgi-docs/#Wnck-3.0/classes/Window.html#Wnck.Window.activate

Perhaps something could be done with that.

self.get_window().focus(time)

Maybe try sticking in something like

self.get_window().activate(time)

(Might not give us a Wnck window though; I'd have to check.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants