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

Some minor ports of commits from #354 #392

Merged
merged 5 commits into from
Feb 10, 2025
Merged

Some minor ports of commits from #354 #392

merged 5 commits into from
Feb 10, 2025

Conversation

Leleat
Copy link
Owner

@Leleat Leleat commented Feb 3, 2025

See commits.

@Leleat Leleat changed the title Some minor ports of commits from !354 Some minor ports of commits from #354 Feb 3, 2025
@Leleat Leleat force-pushed the cherry-pick-from-354 branch from beb57e9 to 37427d5 Compare February 3, 2025 15:02
The xAnchor parameter was used to restore the size of a window while
keeping the titlebar at the relative x position. Our extra calculations
were no longer needed (and also were no longer working) since GNOME 44
(https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2942). So remove
that code.
eventually, I want to get rid of the signal class since that was a
dumb "custom implementation of signal tracking". We could just directly
attach the signals to the window instances or whatever...
This will allow for a more pleasant dev experience by adding better
auto-complete and typing. Especially, for custom properties and methods
that are injected into GNOME's objects.

This is probably also the extent of 'typing' I plan to add. I don't
intend to enable `checkJs` nor do I plan to transition to Typescript.
I've temporarily enabled `checkJs` and this uncovered some issues. They
were mostly wrong JSDoc comments. But there were also some actual issues
although I don't think they had observable bugs:

- GLib.PRIORITY_IDLE -> GLib.PRIORITY_DEFAULT_IDLE ... PRIORITY_IDLE
doen't exists
- removed unused variables in calls to focusHint.js::getAbsPos
- added a missing argument to addGaps call in tileEditingMode.js
- fix import for debugging shortcut in utility.js

(Also remove brackets in extension.js to satisfy the linter)
@Leleat Leleat force-pushed the cherry-pick-from-354 branch from 37427d5 to a2358b0 Compare February 3, 2025 16:36
@Leleat Leleat merged commit ebc23e1 into main Feb 10, 2025
3 checks passed
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.

1 participant