Skip to content

Replace window checking idle loop with a timeout#33

Open
danielkza wants to merge 1 commit intowilfm:masterfrom
danielkza:fix_window_add_callback
Open

Replace window checking idle loop with a timeout#33
danielkza wants to merge 1 commit intowilfm:masterfrom
danielkza:fix_window_add_callback

Conversation

@danielkza
Copy link
Copy Markdown
Contributor

Also, make sure the onWindowAdded callback is only called once when the
window is already properly added to the compositor. Keep the timeout
running otherwise, instead of setting a new one up every time.

This seems to fix #32 for me, but needs more testing, and testing on GNOME versions other than 3.16.

Also, make sure the onWindowAdded callback is only called once when the
window is already properly added to the compositor. Keep the timeout
running otherwise, instead of setting a new one up every time.
@Talv
Copy link
Copy Markdown

Talv commented Sep 14, 2015

Thanks for the fix.
Can confirm that it indeed does fix mentioned issue. Tested on arch gnome shell 3.16.3.

@ghost
Copy link
Copy Markdown

ghost commented Sep 23, 2015

Oops spoke too soon, upon restart MaximusTwo won't load as an extension.

@danielkza
Copy link
Copy Markdown
Contributor Author

@xhn35rq Any errors in the GNOME debug UI? (Alt-F2 -> lg)

@ghost
Copy link
Copy Markdown

ghost commented Sep 30, 2015

@danielkza thank you for checking with me, I just tried it again and this time no errors. I had to edit gnome-shell version in metadata.json to get it working as I'm on 3.14. So far gnome-shell is hovering between 0% and 5% depending on usage, which is usual for me. So far so good! Thanks again!

@wilfm
Copy link
Copy Markdown
Owner

wilfm commented Oct 4, 2015

I'll be able to test this on 3.16 and 3.18 then should be able to merge it. Do you think this should be available for 3.14 as well?

@ghost
Copy link
Copy Markdown

ghost commented Oct 6, 2015

I've had no issues with this branch so far.

@wilfm
Copy link
Copy Markdown
Owner

wilfm commented Nov 7, 2015

I have left this mess for far too long :( I will try and merge and fix stuff this evening or tomorrow...

@zakkak
Copy link
Copy Markdown

zakkak commented Dec 2, 2015

Tested on ArchLinux 64bit with Gnome 3.18 and everything looks fine, after about a full day of use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gnome-shell stays at ~20% CPU when using Maximus Two

4 participants