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

Closing the app library without launching anything doesn't fully return focus to the previously active window #11

Closed
leviport opened this issue Aug 23, 2022 · 4 comments

Comments

@leviport
Copy link
Member

leviport commented Aug 23, 2022

Summary:

If I open the app library over the top of an application, say, Gnome Terminal or LibreOffice Writer, then I close the app library with the Esc key, I need to click the application window with my mouse before I can resume typing in that application.

Steps to reproduce:

Expected behavior:

After closing the app library with Esc, I'd expect to be able to resume typing in Writer without having to click it with my mouse.

Version:

$ apt policy cosmic-app-library 
cosmic-app-library:
  Installed: 0.1.0~1660784434~22.04~dc85e14
  Candidate: 0.1.0~1660784434~22.04~dc85e14
  Version table:
 *** 0.1.0~1660784434~22.04~dc85e14 1002
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
       1002 http://apt.pop-os.org/staging/master jammy/main amd64 Packages
        100 /var/lib/dpkg/status
@wash2
Copy link
Collaborator

wash2 commented Aug 25, 2022

I think this issue probably should be on either
https://github.com/pop-os/cosmic-applet-host
or
https://github.com/pop-os/cosmic-comp

@Drakulix
Copy link
Member

This might be related to #12.

@wash2 Can you confirm that the applet-host destroys the surface correctly?
If it does, this is clearly a cosmic-comp bug.

@wash2
Copy link
Collaborator

wash2 commented Aug 26, 2022

This might be related to #12.

@wash2 Can you confirm that the applet-host destroys the surface correctly? If it does, this is clearly a cosmic-comp bug.

fn drop(&mut self) {
    self.layer_surface.destroy();
}

This is the drop function for when an active applet is removed.

@leviport
Copy link
Member Author

leviport commented Dec 1, 2022

This looks like it got fixed too

@leviport leviport closed this as completed Dec 1, 2022
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

No branches or pull requests

3 participants