-
Notifications
You must be signed in to change notification settings - Fork 29
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 gnome 41.3 & 42 (pop & ubuntu 22.04) #101
Conversation
This fix does work on Gnome 41.4 (Debian bookworm) |
Thank you for this ❤️ |
The fix is not complete, as it crashes the extension, when e.g. the lock screen activates:
The reset() method still references WorkspacesView.SecondaryMonitorDisplay, which is no longer there. Removing this reference seems to work fine, no more crashes on my end.
|
- use the correct protoype Caused by gnome javascript PR: https://gitlab.gnome.org/GNOME/gjs/-/commit/e74701596c2ff9880cd39289b9649bb490951091#03566cbfedf849175708a56bfbbc92fe4cd7a28f - merge upstream changes Caused by gnome-shell PR: https://gitlab.gnome.org/GNOME/gnome-shell/-/commit/5d1d4b56c6a804aec324ca8e97f7e045ce49e958
This has been change to hopefully fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much! I do have some small requests, but then I'll merge and publisher as soon as I can.
workspacesView.js
Outdated
@@ -15,7 +15,7 @@ const Util = Self.imports.util; | |||
|
|||
function override() { | |||
global.vertical_overview.GSFunctions['WorkspacesView'] = Util.overrideProto(WorkspacesView.WorkspacesView.prototype, WorkspacesViewOverride); | |||
log('You may see an error below,\nSecondaryMonitorDisplay is defined as const for some reason.\nSince I\'m overriding values in that const an error show might show up.\n Feel free to ignore it'); | |||
log('You may see an error below,\nSecondaryMonitorDisplay is defined as const for some reason.\nSecondaryMonitorDisplay = ' + WorkspacesView.SecondaryMonitorDisplay + '\nSince I\'m overriding values in that const an error show might show up.\n Feel free to ignore it'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this left over debugging? It's dumping the entire code for SecondaryMonitorDisplay into the log.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strangely enough this is required. I think it might be some GJS bug, but without printing WorkspacesView.SecondaryMonitorDisplay
the use of it doesn't work in the next line saying that it cant be found. There might be a better way to accomplish this
Co-authored-by: RensAlthuis <[email protected]>
manually installing this and getting my mental desktop management back in the groove today was the highlight of my morning. thanks for all the work y'all. |
@RensAlthuis This PR was merged but issue described in #101 (comment) is still there. |
use the correct protoype
Caused by gnome javascript PR: https://gitlab.gnome.org/GNOME/gjs/-/commit/e74701596c2ff9880cd39289b9649bb490951091#03566cbfedf849175708a56bfbbc92fe4cd7a28f
merge upstream changes
Caused by gnome-shell PR: https://gitlab.gnome.org/GNOME/gnome-shell/-/commit/5d1d4b56c6a804aec324ca8e97f7e045ce49e958