Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Conversation

@DavidKarlas
Copy link
Contributor

…ched from IDE into its own window

Problem is that when command comes in, it first goes to CocoaTextViewControl and then up NSView treeview, problem starts when migrating to GTK treeview because GtkNSViewHost is not set as it should be, after debugging why this happens it appears that GetFocusedChild method wasn't returning GtkNSViewHost as expected, upon further debugging it turns out thats because logic of drilling down GTK treeview doesn't work because GetFocusedChild parameter is NSWindow instead of GtkWindow. So fix is to convert NSWindow to GtkWindow and now everything works as expected. Reason we are getting NSWindow instead of GtkWindow is somewhere in GetActiveWindow method, but I'm not sure if its bug or not....

…ched from IDE into its own window

Problem is that when command comes in, it first goes to CocoaTextViewControl and then up NSView treeview, problem starts when migrating to GTK treeview because GtkNSViewHost is not set as it should be, after debugging why this happens it appears that `GetFocusedChild` method wasn't returning `GtkNSViewHost` as expected, upon further debugging it turns out thats because logic of drilling down GTK treeview doesn't work because `GetFocusedChild` parameter is `NSWindow` instead of `GtkWindow`. So fix is to convert `NSWindow` to `GtkWindow` and now everything works as expected. Reason we are getting `NSWindow` instead of `GtkWindow` is somewhere in `GetActiveWindow` method, but I'm not sure if its bug or not....
@DavidKarlas DavidKarlas requested a review from slluis as a code owner November 5, 2019 18:31
@DavidKarlas
Copy link
Contributor Author

@monojenkins backport release-8.4

@sandyarmstrong
Copy link
Member

@monojenkins backport release-8.3

@sandyarmstrong sandyarmstrong added the Area: VS Text Editor For issues and pull requests concerning the new native Cocoa VS Text Editor in Visual Studio for Mac label Nov 5, 2019
@sandyarmstrong sandyarmstrong merged commit 8ae94c6 into master Nov 7, 2019
@sandyarmstrong sandyarmstrong deleted the dev/davkar/fix988924 branch November 7, 2019 14:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Area: VS Text Editor For issues and pull requests concerning the new native Cocoa VS Text Editor in Visual Studio for Mac

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants