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

fix: "Tile Windows" toggle causing recursion when using shortcut #1756

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

epetousis
Copy link
Contributor

@epetousis epetousis commented Dec 7, 2024

Fixes #1733, it was an infinite recursion issue that was caused by updating the state for the "Tile Windows" toggle in the indicator popup.

I fixed this by calling the appropriate auto_tile_* method inside the connect callback for the toggle. If this isn't the preferred way to go about it, then I'm happy to change it.

Works on my machine, even if I press and hold the toggle-tiling shortcut key combination.

@jaxwilko
Copy link

jaxwilko commented Dec 7, 2024

Tested and fixes the issue on Debian trixie/sid Gnome 47.2 👍

@manavchaudhary1
Copy link

Seems to be bugs on Fedora 41 Gnome 47.2
https://imgur.com/a/5SyFXDB
Opens another instance.

@jaxwilko
Copy link

jaxwilko commented Dec 17, 2024

Running make local-install calls restart-shell which can be found here:

shell/Makefile

Line 70 in e25621e

restart-shell:

Could it be causing the odd behaviour for you?

On Nvidia my desktop always crashes if I run make local-install from within the DE, so I switch to a different TTY (i.e. CTRL + ALT + 6) then run the command in the tty without a DE. Switching back to Gnome after seems to work fine after doing this.

@manavchaudhary1
Copy link

manavchaudhary1 commented Dec 17, 2024

Now it's working after installing from tty3 and rebooting.

@manavchaudhary1
Copy link

Ctrl + Enter not coloring window blue , which causes confusion.
Problem specific to this pr working fine in main branch.

@epetousis
Copy link
Contributor Author

Ctrl + Enter not coloring window blue , which causes confusion.

This sounds like you have my main branch checked out, which is where I'm tinkering with the extension and aiming to implement moving windows without having to hit Ctrl + Enter. Make sure you have the commit epetousis/pop-shell@af83e5e checked out.

@jacobgkau jacobgkau requested review from a team December 31, 2024 17:53
Copy link
Member

@jacobgkau jacobgkau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to keep this straight in case it's important later, the bug in question affects GNOME 47 but not GNOME 46 and below. Ubuntu Noble (24.04) comes with GNOME 46, and we don't have an Oracular branch yet. However, this should be fine, because the fix doesn't seem to cause any regressions on GNOME 46. Toggling the state on and off with both the top-right icon and the keyboard shortcut (and a combination of the two) works normally with this branch on Pop!_OS 24.04 Alpha, as it did before.

On GNOME 47 (testing with EndeavourOS), I was able to recreate the issue before this fix (by simply toggling tiling off with the keyboard shortcut and observing a freeze), and am no longer seeing it occur after the fix.

This is not merging into a stable Pop!_OS branch and does not affect the currently supported 22.04 session.

Thank you for digging into this and contributing the fix!

@jacobgkau jacobgkau merged commit 104269e into pop-os:master_noble Dec 31, 2024
@dagimg-dot
Copy link

Tested on Fedora 41 Gnome 47.2 and the issue is fixed. Thank you all!

@epetousis epetousis deleted the fix-tiling-toggle branch January 1, 2025 09:54
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.

Desktop freezes when disabling tiling mode via shortcut
6 participants